Fixed usage of {{enable-developer-experiments}} without sub-expression syntax

This commit is contained in:
Kevin Ansfield 2020-10-09 15:52:23 +01:00
parent a3d3632e97
commit a8f63f9343
3 changed files with 3 additions and 3 deletions

View File

@ -140,7 +140,7 @@
{{/if}} {{/if}}
</section> </section>
{{#if (or enable-developer-experiments this.config.portal)}} {{#if (or (enable-developer-experiments) this.config.portal)}}
<section class="bb b--whitegrey pa5"> <section class="bb b--whitegrey pa5">
<div class="flex justify-between"> <div class="flex justify-between">
<div> <div>

View File

@ -64,7 +64,7 @@
<GhErrorMessage @errors={{this.webhook.errors}} @property="targetUrl" data-test-error="webhook-targetUrl" /> <GhErrorMessage @errors={{this.webhook.errors}} @property="targetUrl" data-test-error="webhook-targetUrl" />
</GhFormGroup> </GhFormGroup>
</fieldset> </fieldset>
{{#if enable-developer-experiments}} {{#if (enable-developer-experiments)}}
<fieldset> <fieldset>
<GhFormGroup @errors={{this.webhook.errors}} @hasValidated={{this.webhook.hasValidated}} @property="secret"> <GhFormGroup @errors={{this.webhook.errors}} @hasValidated={{this.webhook.hasValidated}} @property="secret">
<label for="webhook-secret" class="fw6">Secret</label> <label for="webhook-secret" class="fw6">Secret</label>

View File

@ -3,7 +3,7 @@
{{section.title}} {{section.title}}
</div> </div>
{{#each section.items as |item|}} {{#each section.items as |item|}}
{{#if (or (not item.developerExperiment) (and item.developerExperiment enable-developer-experiments))}} {{#if (or (not item.developerExperiment) (and item.developerExperiment (enable-developer-experiments)))}}
<div class="{{if item.selected "kg-cardmenu-card-selected"}} {{kg-style "cardmenu-card"}}" onclick={{action itemClicked item}} data-kg="cardmenu-card" role="menuitem"> <div class="{{if item.selected "kg-cardmenu-card-selected"}} {{kg-style "cardmenu-card"}}" onclick={{action itemClicked item}} data-kg="cardmenu-card" role="menuitem">
<div class="{{kg-style "cardmenu-icon"}} {{item.iconClass}}" aria-hidden="true">{{svg-jar item.icon class="w8 h8"}}</div> <div class="{{kg-style "cardmenu-icon"}} {{item.iconClass}}" aria-hidden="true">{{svg-jar item.icon class="w8 h8"}}</div>
<div class="{{kg-style "cardmenu-label"}}">{{item.label}}</div> <div class="{{kg-style "cardmenu-label"}}">{{item.label}}</div>