Fix observer selection #44

Merged
romanskijdev merged 1 commits from fix-permissions into main 2026-06-29 15:37:17 +03:00
1 changed files with 5 additions and 4 deletions

View File

@ -84,12 +84,13 @@ func BuildObserverActions(approvalID uint64, topicCode string, status string, fi
kb := tgkit.NewInlineKeyboard()
if filesCount > 0 {
kb.Row(tgkit.Btn(fmt.Sprintf("📎 Просмотреть файлы (%d)", filesCount), fmt.Sprintf("appr_view_files:%d", approvalID)))
kb.Row(tgkit.Btn(
fmt.Sprintf("📎 Просмотреть файлы (%d)", filesCount),
fmt.Sprintf("appr_view_files:%d", approvalID),
))
}
if status != "approved" {
kb.Row(tgkit.Btn("💬 Комментировать", fmt.Sprintf("appr_comment:%d", approvalID)))
}
kb.Row(tgkit.Btn("💬 Комментировать", fmt.Sprintf("appr_comment:%d", approvalID)))
return kb.Build()
}