define BTCPAY_ENABLED based on URL and btcpay key, pass it explicitly

This commit is contained in:
2021-07-21 12:12:41 -05:00
parent 7ed847251f
commit 36329796f0
4 changed files with 11 additions and 11 deletions

View File

@ -423,6 +423,7 @@ def account_balance():
has_vms=len(vms_billed)>0,
vms_billed=vms_billed,
warning_text=warning_text,
btcpay_enabled=current_app.config["BTCPAY_ENABLED"],
payments=list(map(
lambda x: dict(
dollars=x["dollars"],