Add button but indicate it's disabled.

This commit is contained in:
James Cole
2023-12-30 13:10:06 +01:00
parent a42470e5b4
commit eec1888f87
2 changed files with 6 additions and 0 deletions

View File

@@ -234,6 +234,7 @@ return [
// Webhooks
'webhooks' => 'Webhooks',
'webhooks_breadcrumb' => 'Webhooks',
'webhooks_menu_disabled' => 'disabled',
'no_webhook_messages' => 'There are no webhook messages',
'webhook_trigger_STORE_TRANSACTION' => 'After transaction creation',
'webhook_trigger_UPDATE_TRANSACTION' => 'After transaction update',

View File

@@ -91,6 +91,11 @@
<span>{{ 'webhooks'|_ }}</span>
</a>
</li>
{% else %}
<li class="{{ activeRoutePartial('webhooks') }}">
<span class="fa fa-angle-right fa-fw"></span>
<span>{{ 'webhooks'|_ }} ({{ 'webhooks_menu_disabled'|_ }})</span>
</li>
{% endif %}
</ul>
</li>