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
Some checks failed
release / docker (push) Has been cancelled
Reviewed-on: #98
This commit is contained in:
commit
35d9d13442
@ -100,6 +100,10 @@ func (h *MenuHandlers) ViewPool(ctx context.Context, sym string, input []byte) (
|
|||||||
flag_incorrect_pool, _ := h.flagManager.GetFlag("flag_incorrect_pool")
|
flag_incorrect_pool, _ := h.flagManager.GetFlag("flag_incorrect_pool")
|
||||||
|
|
||||||
inputStr := string(input)
|
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)
|
poolData, err := store.GetPoolData(ctx, h.userdataStore, sessionId, inputStr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -9,14 +9,16 @@ MAP check_balance
|
|||||||
MOUT send 1
|
MOUT send 1
|
||||||
MOUT swap 2
|
MOUT swap 2
|
||||||
MOUT vouchers 3
|
MOUT vouchers 3
|
||||||
MOUT account 4
|
MOUT select_pool 4
|
||||||
MOUT help 5
|
MOUT account 5
|
||||||
|
MOUT help 6
|
||||||
MOUT quit 9
|
MOUT quit 9
|
||||||
HALT
|
HALT
|
||||||
INCMP send 1
|
INCMP send 1
|
||||||
INCMP swap_to_list 2
|
INCMP swap_to_list 2
|
||||||
INCMP my_vouchers 3
|
INCMP my_vouchers 3
|
||||||
INCMP my_account 4
|
INCMP select_pool 4
|
||||||
INCMP help 5
|
INCMP my_account 5
|
||||||
|
INCMP help 6
|
||||||
INCMP quit 9
|
INCMP quit 9
|
||||||
INCMP . *
|
INCMP . *
|
||||||
|
@ -2,11 +2,9 @@ LOAD reset_account_authorized 16
|
|||||||
RELOAD reset_account_authorized
|
RELOAD reset_account_authorized
|
||||||
MOUT select_voucher 1
|
MOUT select_voucher 1
|
||||||
MOUT voucher_details 2
|
MOUT voucher_details 2
|
||||||
MOUT select_pool 3
|
|
||||||
MOUT back 0
|
MOUT back 0
|
||||||
HALT
|
HALT
|
||||||
INCMP _ 0
|
INCMP _ 0
|
||||||
INCMP select_voucher 1
|
INCMP select_voucher 1
|
||||||
INCMP voucher_details 2
|
INCMP voucher_details 2
|
||||||
INCMP select_pool 3
|
|
||||||
INCMP . *
|
INCMP . *
|
||||||
|
Loading…
Reference in New Issue
Block a user