Merge pull request 'Move select pool menu to the home page' (#98) from move-pools-menu into master
Some checks are pending
release / docker (push) Waiting to run

Reviewed-on: #98
This commit is contained in:
Alfred Kamanda 2025-07-21 08:24:54 +02:00
commit 35d9d13442
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 . *