is handlebars else if instead of nesting ifs

This commit is contained in:
Johannes Loher 2021-05-13 20:44:21 +02:00
parent 473ec3a903
commit 01a9dcbbb8

View file

@ -15,8 +15,7 @@
{{#each (lookup config.i18n 'temporalUnitsAbbr') as |value key|}}
<option value="{{key}}">{{value}}</option>
{{/each}}
{{else}}
{{#if (eq unitType 'customTemporal')}}
{{else if (eq unitType 'customTemporal')}}
{{#each (lookup config.i18n 'customTemporalUnitsAbbr') as |value key|}}
<option value="{{key}}">{{value}}</option>
{{/each}}
@ -25,7 +24,6 @@
<option value="{{key}}">{{value}}</option>
{{/each}}
{{/if}}
{{/if}}
{{/select}}
</select>
</div>