ui: Hide 'Accept Bid' btn when not able to accept.

This commit is contained in:
tecnovert committed 2024-03-07 15:38:53 +02:00
1 parent d6535dbc1d
commit f4c88b5356
3 files changed
+3 -7

No files matched your search

+1 -5
View File
@@ -108,11 +108,7 @@ def page_bid(self, url_split, post_string):
if len(data['addr_from_label']) > 0:
data['addr_from_label'] = '(' + data['addr_from_label'] + ')'
page_data = {
'bid_states': listBidStates(),
'bid_actions': []
}
data['can_accept_bid'] = True if bid.state == BidStates.BID_RECEIVED else False
if swap_client.debug_ui:
data['bid_actions'] = [(-1, 'None'), ] + listBidActions()