fixes
This commit is contained in:
@@ -187,35 +187,18 @@ func (s *CreativeView) Exit() {}
|
||||
// showActionPanel показывает панель действий с кнопками
|
||||
func (s *CreativeView) showActionPanel(b *bot.Bot) {
|
||||
tagLabel := s.GetTagLabel()
|
||||
purchaseLabel := "🛒 Закупить на креатив"
|
||||
|
||||
// Если креатив архивирован (в будущем), можно изменить кнопки
|
||||
var buttons [][]echotron.InlineKeyboardButton
|
||||
|
||||
// Кнопка переименования
|
||||
buttons = append(buttons, Row(
|
||||
Button("✏️ Переименовать", "rename"),
|
||||
))
|
||||
|
||||
// Кнопка редактирования
|
||||
buttons = append(buttons, Row(
|
||||
Button("🖊 Редактировать", "edit"),
|
||||
))
|
||||
|
||||
// Кнопка тега
|
||||
buttons = append(buttons, Row(
|
||||
Button(tagLabel, "toggle_tag"),
|
||||
))
|
||||
|
||||
// Кнопка закупа
|
||||
buttons = append(buttons, Row(
|
||||
Button(purchaseLabel, "purchase_creative"),
|
||||
))
|
||||
|
||||
// Кнопка назад
|
||||
buttons = append(buttons, Row(
|
||||
Button("← Назад", "back"),
|
||||
))
|
||||
buttons := [][]echotron.InlineKeyboardButton{
|
||||
Row(
|
||||
Button("✎ Переименовать", "rename"),
|
||||
Button("✎ Редактировать", "edit"),
|
||||
),
|
||||
Row(Button("+ Закупить", "purchase_creative")),
|
||||
Row(
|
||||
Button("← Назад", "back"),
|
||||
Button(tagLabel, "toggle_tag"),
|
||||
),
|
||||
}
|
||||
|
||||
s.ShowControlPanel(b, msgCreativeView, buttons)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user