fix
This commit is contained in:
@@ -1113,6 +1113,10 @@ func (s *PurchaseOptionalDetails) renderParamScreens(b *bot.Bot, mode bot.Render
|
||||
}
|
||||
|
||||
func (s *PurchaseOptionalDetails) renderParamChannels(b *bot.Bot, mode bot.RenderMode, param string) {
|
||||
// Сбрасываем на редактирование при смене параметра
|
||||
if s.CurrentParam != param || s.ChannelEditMode == "" {
|
||||
s.ChannelEditMode = "edit"
|
||||
}
|
||||
s.CurrentParam = param
|
||||
text := fmt.Sprintf("<b>%s — по каналам</b>\n\n", s.paramTitle(param))
|
||||
text += s.renderParamChannelSummary(param) + "\n\n"
|
||||
@@ -1130,8 +1134,6 @@ func (s *PurchaseOptionalDetails) renderParamChannels(b *bot.Bot, mode bot.Rende
|
||||
}
|
||||
start, end := ui2.GetPageBounds(s.ParamPage, perPage, total)
|
||||
|
||||
// Всегда сбрасываем на редактирование при входе
|
||||
s.ChannelEditMode = "edit"
|
||||
|
||||
var rows [][]echotron.InlineKeyboardButton
|
||||
|
||||
|
||||
Reference in New Issue
Block a user