mirror of
https://github.com/basicswap/basicswap.git
synced 2026-04-09 02:47:22 +02:00
GUI: Multi-select coin filtering / Various fixes. (#327)
* GUI: Multi-select coin filtering / Various fixes. * Use coin-manager / clean-up. * Fix BCH in filters + fix UX with bid pages modals when amount is empty. * Fix amount not empty. * Abandon Bid under debug_ui
This commit is contained in:
@@ -884,6 +884,7 @@ def page_offers(self, url_split, post_string, sent=False):
|
||||
"sort_dir": "desc",
|
||||
"sent_from": "any" if sent is False else "only",
|
||||
"active": "any",
|
||||
"auto_accept_type": "any",
|
||||
}
|
||||
|
||||
filter_prefix = "page_offers_sent" if sent else "page_offers"
|
||||
@@ -908,6 +909,16 @@ def page_offers(self, url_split, post_string, sent=False):
|
||||
sent_from = get_data_entry(form_data, "sent_from")
|
||||
ensure(sent_from in ["any", "only"], "Invalid sent filter")
|
||||
filters["sent_from"] = sent_from
|
||||
if have_data_entry(form_data, "auto_accept_type"):
|
||||
auto_accept_type = get_data_entry(form_data, "auto_accept_type")
|
||||
ensure(
|
||||
auto_accept_type in ["any", "0", "1", "2"],
|
||||
"Invalid auto accept type filter",
|
||||
)
|
||||
if auto_accept_type == "any":
|
||||
filters["auto_accept_type"] = "any"
|
||||
else:
|
||||
filters["auto_accept_type"] = int(auto_accept_type)
|
||||
if have_data_entry(form_data, "active"):
|
||||
active_filter = get_data_entry(form_data, "active")
|
||||
ensure(
|
||||
|
||||
Reference in New Issue
Block a user