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:
parent
687440c0da
commit
76f5a4f27a
2 changed files with 69 additions and 12 deletions
|
|
@ -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}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue