ui: Hide 'Accept Bid' btn when not able to accept.
This commit is contained in:
3 files changed
+3
-7
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user