Merge pull request 'Fix observer selection' (#43) from fix-permissions into main
Deploy / deploy (push) Successful in 12s
Details
Deploy / deploy (push) Successful in 12s
Details
Reviewed-on: https://72.56.235.246.nip.io/gitea/romanskijdev/ruspet_portal_back/pulls/43
This commit is contained in:
commit
525deaa6b8
|
|
@ -80,7 +80,7 @@ func BuildRevokeButton(approvalID uint64, status string, filesCount int) interfa
|
|||
}
|
||||
|
||||
// BuildObserverActions — кнопки наблюдателя
|
||||
func BuildObserverActions(approvalID uint64, topicCode string, status string, filesCount int) interface{} {
|
||||
func BuildObserverActions(approvalID uint64, topicCode string, status string, filesCount int) tgbotapi.InlineKeyboardMarkup {
|
||||
kb := tgkit.NewInlineKeyboard()
|
||||
|
||||
if filesCount > 0 {
|
||||
|
|
@ -90,8 +90,7 @@ func BuildObserverActions(approvalID uint64, topicCode string, status string, fi
|
|||
if status != "approved" {
|
||||
kb.Row(tgkit.Btn("💬 Комментировать", fmt.Sprintf("appr_comment:%d", approvalID)))
|
||||
}
|
||||
// К списку (наблюдатель)
|
||||
//kb.Row(tgkit.BtnStyled(tgkit.ButtonStyleBack, "К списку", fmt.Sprintf("obs_back:%s", topicCode)))
|
||||
|
||||
return kb.Build()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue