Add an assertion that makes sure that tabs which should be hidden do not get displayed to the user if the condition becomes falsy due to a document update

This commit is contained in:
Oliver 2026-04-12 17:57:42 -06:00
parent 687440c0da
commit 76f5a4f27a
2 changed files with 69 additions and 12 deletions

View file

@ -3,15 +3,17 @@
{{else}}
<nav class="tabs system-tabs">
{{#each tabs as |tab|}}
<button
type="button"
class="{{tab.cssClass}}"
data-action="tab"
data-group="{{tab.group}}"
data-tab="{{tab.id}}"
>
{{localize tab.label}}
</button>
{{#if tab.visible}}
<button
type="button"
class="{{tab.cssClass}}"
data-action="tab"
data-group="{{tab.group}}"
data-tab="{{tab.id}}"
>
{{localize tab.label}}
</button>
{{/if}}
{{/each}}
</nav>
{{/if}}