Compare commits

...

3 Commits

Author SHA1 Message Date
35d9d13442 Merge pull request 'Move select pool menu to the home page' (#98) from move-pools-menu into master
Some checks failed
release / docker (push) Has been cancelled
Reviewed-on: #98
2025-07-21 08:24:54 +02:00
72d038c076
move the select pool menu to the main node 2025-07-18 16:06:26 +03:00
058d802c0f
return on navigation inputs to prevent calling the API 2025-07-18 16:04:24 +03:00
3 changed files with 10 additions and 6 deletions

View File

@ -100,6 +100,10 @@ func (h *MenuHandlers) ViewPool(ctx context.Context, sym string, input []byte) (
flag_incorrect_pool, _ := h.flagManager.GetFlag("flag_incorrect_pool")
inputStr := string(input)
if inputStr == "0" || inputStr == "99" || inputStr == "88" || inputStr == "98" {
res.FlagReset = append(res.FlagReset, flag_incorrect_pool)
return res, nil
}
poolData, err := store.GetPoolData(ctx, h.userdataStore, sessionId, inputStr)
if err != nil {

View File

@ -9,14 +9,16 @@ MAP check_balance
MOUT send 1
MOUT swap 2
MOUT vouchers 3
MOUT account 4
MOUT help 5
MOUT select_pool 4
MOUT account 5
MOUT help 6
MOUT quit 9
HALT
INCMP send 1
INCMP swap_to_list 2
INCMP my_vouchers 3
INCMP my_account 4
INCMP help 5
INCMP select_pool 4
INCMP my_account 5
INCMP help 6
INCMP quit 9
INCMP . *

View File

@ -2,11 +2,9 @@ LOAD reset_account_authorized 16
RELOAD reset_account_authorized
MOUT select_voucher 1
MOUT voucher_details 2
MOUT select_pool 3
MOUT back 0
HALT
INCMP _ 0
INCMP select_voucher 1
INCMP voucher_details 2
INCMP select_pool 3
INCMP . *