Skip to content

Commit

Permalink
Show more information
Browse files Browse the repository at this point in the history
  • Loading branch information
BitcoinMitchell committed Jul 14, 2023
1 parent 81cea88 commit 5a36fd0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions modules/btcpay/views/templates/admin/configure.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,20 @@

{% set webhook = client.webhook().getCurrent(storeId, webhookId) %}
<dt><span class="text-muted mb-0"><strong>{{ 'Webhook ID'|trans({}, 'Modules.Btcpay.Admin') }}</strong></span></dt>
{% if webhook is not null and webhook.enabled is defined %}
<dd><span class="{% if webhook.enabled %}text-success{% else %}text-warning{% endif %} px-1">{{ webhook.id }}</span></dd>
{% if webhook is not null and webhook.enabled is defined and webhook.enabled%}
<dd><span class="text-success px-1">{{ webhook.id }}</span></dd>
{% elseif webhook is not null and webhook.enabled is defined and not webhook.enabled%}
<dd><span class="text-warning px-1"><span title="Webhook has been disabled, re-enable it again your store">{{ webhook.id }} ⚠️</span></span></dd>
{% else %}
<span class="text-warning px-1">Webhook is missing, retry the setup process</span>
{% endif %}

<dt><span class="text-muted mb-0"><strong>{{ 'Node fully synced'|trans({}, 'Modules.Btcpay.Admin') }}</strong></span></dt>
<dd>
{% if serverInfo.fullySynced %}
<span class="text-success px-1">Yes</span>
{% else %}
<span class="text-warning px-1"><span title="The payment option won't be available until the server is synced">No</span></span>
<span class="text-warning px-1"><span title="The payment option won't be available until the server is synced">No ⚠️</span></span>
{% endif %}
</dd>

Expand Down

0 comments on commit 5a36fd0

Please sign in to comment.