Fix approver name in approval card
This commit is contained in:
parent
2a804ecd34
commit
fb894c8bd8
|
|
@ -402,7 +402,7 @@ func (h *Handler) sendConfirmationCard(bot *tgbotapi.BotAPI, ctx context.Context
|
|||
if actualApprover != nil && actualApprover.FullName != nil {
|
||||
approverLine = *actualApprover.FullName
|
||||
if actualApprover.ID != nil && originalApprover.ID != nil && *actualApprover.ID != *originalApprover.ID {
|
||||
approverLine += fmt.Sprintf(" (Временно исполняющий обязанности %s)", *originalApprover.FullName)
|
||||
approverLine += fmt.Sprintf(" (Временно исполняющий обязанности за: %s)", *originalApprover.FullName)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,9 @@ const delegationPerPage = 6
|
|||
func BuildDelegationMainMenu() interface{} {
|
||||
return tgkit.NewInlineKeyboard().
|
||||
Row(tgkit.BtnStyled(tgkit.ButtonStyleSuccess, "Делегировать заявки", "deleg_create")).
|
||||
Row(tgkit.BtnStyled(tgkit.ButtonStyleSuccess, "Делегировать задачи", "deleg_task_create")).
|
||||
Row(tgkit.Btn("📋 Мои делегирования (Заявки)", "deleg_list")).
|
||||
Row(tgkit.Btn("📋 Мои делегирования (Задачи)", "deleg_task_list")).
|
||||
Build()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,8 +37,6 @@ func BuildMainMenu(roles UserRole) tgbotapi.ReplyKeyboardMarkup {
|
|||
// Раздел: Исполнитель
|
||||
if roles.IsExecutor {
|
||||
kb.Row("Задачи к исполнению")
|
||||
kb.Row(tgkit.BtnStyled(tgkit.ButtonStyleSuccess, "Делегировать задачи", "deleg_task_create"))
|
||||
kb.Row(tgkit.Btn("📋 Мои делегирования (Задачи)", "deleg_task_list"))
|
||||
}
|
||||
|
||||
// Общие кнопки — всегда внизу
|
||||
|
|
|
|||
Loading…
Reference in New Issue