mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: enforces ember-template-lint: simple-unless (#9146)
This commit is contained in:
@@ -7,7 +7,11 @@
|
||||
}}
|
||||
|
||||
{{#select-kit/select-kit-body selectKit=selectKit}}
|
||||
{{#unless selectKit.isLoading}}
|
||||
{{#if selectKit.isLoading}}
|
||||
<span class="is-loading">
|
||||
{{loading-spinner size="small"}}
|
||||
</span>
|
||||
{{else}}
|
||||
{{#if selectKit.filter}}
|
||||
{{#if selectKit.hasNoContent}}
|
||||
<span class="no-content">
|
||||
@@ -23,11 +27,7 @@
|
||||
value=value
|
||||
}}
|
||||
{{/each}}
|
||||
{{else}}
|
||||
<span class="is-loading">
|
||||
{{loading-spinner size="small"}}
|
||||
</span>
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
{{/select-kit/select-kit-body}}
|
||||
|
||||
<div class="select-kit-wrapper"></div>
|
||||
|
||||
@@ -9,7 +9,13 @@
|
||||
{{#select-kit/select-kit-body selectKit=selectKit}}
|
||||
{{component selectKit.options.filterComponent selectKit=selectKit}}
|
||||
|
||||
{{#unless selectKit.isLoading}}
|
||||
{{#if selectKit.isLoading}}
|
||||
<span class="is-loading">
|
||||
{{#if site}}
|
||||
{{loading-spinner size="small"}}
|
||||
{{/if}}
|
||||
</span>
|
||||
{{else}}
|
||||
{{#if selectKit.filter}}
|
||||
{{#if selectKit.hasNoContent}}
|
||||
<span class="no-content">
|
||||
@@ -25,13 +31,7 @@
|
||||
value=value
|
||||
}}
|
||||
{{/each}}
|
||||
{{else}}
|
||||
<span class="is-loading">
|
||||
{{#if site}}
|
||||
{{loading-spinner size="small"}}
|
||||
{{/if}}
|
||||
</span>
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
{{/select-kit/select-kit-body}}
|
||||
|
||||
<div class="select-kit-wrapper"></div>
|
||||
|
||||
Reference in New Issue
Block a user