mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 19:16:51 +08:00
973b599e11
Bug introduced in this PR https://github.com/discourse/discourse/pull/23232 The previous modal was using `category.name` https://github.com/discourse/discourse/pull/23232/files#diff-bfae353a2f3457780e5c281b6a165261cfe552dd9dd791f3859e52d60e22be7fL20
59 lines
1.5 KiB
Handlebars
59 lines
1.5 KiB
Handlebars
<DModal
|
|
@closeModal={{@closeModal}}
|
|
@title={{i18n "admin.reseed.modal.title"}}
|
|
@subtitle={{i18n "admin.reseed.modal.subtitle"}}
|
|
class="reseed-modal"
|
|
@flash={{this.flash}}
|
|
>
|
|
<:body>
|
|
<ConditionalLoadingSpinner @condition={{this.loading}}>
|
|
{{#if this.categories}}
|
|
<fieldset>
|
|
<legend class="options-group-title">
|
|
{{i18n "admin.reseed.modal.categories"}}
|
|
</legend>
|
|
{{#each this.categories as |category|}}
|
|
<label>
|
|
<Input
|
|
class="option"
|
|
@type="checkbox"
|
|
@checked={{category.selected}}
|
|
/>
|
|
<span>{{category.name}}</span>
|
|
</label>
|
|
{{/each}}
|
|
</fieldset>
|
|
{{/if}}
|
|
<br />
|
|
{{#if this.topics}}
|
|
<fieldset>
|
|
<legend class="options-group-title">
|
|
{{i18n "admin.reseed.modal.topics"}}
|
|
</legend>
|
|
{{#each this.topics as |topic|}}
|
|
<label>
|
|
<Input
|
|
class="option"
|
|
@type="checkbox"
|
|
@checked={{topic.selected}}
|
|
/>
|
|
<span>{{topic.name}}</span>
|
|
</label>
|
|
{{/each}}
|
|
</fieldset>
|
|
{{/if}}
|
|
</ConditionalLoadingSpinner>
|
|
</:body>
|
|
<:footer>
|
|
<DButton
|
|
@action={{this.reseed}}
|
|
@label="admin.reseed.modal.replace"
|
|
@isLoading={{this.reseeding}}
|
|
class="btn-danger"
|
|
/>
|
|
|
|
{{#unless this.reseeding}}
|
|
<DModalCancel @close={{@closeModal}} />
|
|
{{/unless}}
|
|
</:footer>
|
|
</DModal> |