2022-06-30 06:30:50 -04:00
|
|
|
<DModalBody @title="admin.reseed.modal.title" @subtitle="admin.reseed.modal.subtitle" @class="reseed-modal">
|
2022-07-05 13:41:31 -04:00
|
|
|
<ConditionalLoadingSpinner @condition={{this.loading}}>
|
|
|
|
{{#if this.categories}}
|
2019-03-18 16:09:13 -04:00
|
|
|
<fieldset>
|
|
|
|
<legend class="options-group-title">{{i18n "admin.reseed.modal.categories"}}</legend>
|
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#each this.categories as |category|}}
|
2019-03-18 16:09:13 -04:00
|
|
|
<label>
|
2022-06-30 06:30:50 -04:00
|
|
|
<Input class="option" @type="checkbox" @checked={{category.selected}} />
|
2019-03-18 16:09:13 -04:00
|
|
|
<span>{{category.name}}</span>
|
|
|
|
</label>
|
|
|
|
{{/each}}
|
|
|
|
</fieldset>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.topics}}
|
2019-03-18 16:09:13 -04:00
|
|
|
<fieldset>
|
|
|
|
<legend class="options-group-title">{{i18n "admin.reseed.modal.topics"}}</legend>
|
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#each this.topics as |topic|}}
|
2019-03-18 16:09:13 -04:00
|
|
|
<label>
|
2022-06-30 06:30:50 -04:00
|
|
|
<Input class="option" @type="checkbox" @checked={{topic.selected}} />
|
2019-03-18 16:09:13 -04:00
|
|
|
<span>{{topic.name}}</span>
|
|
|
|
</label>
|
|
|
|
{{/each}}
|
|
|
|
</fieldset>
|
|
|
|
{{/if}}
|
2022-06-30 06:30:50 -04:00
|
|
|
</ConditionalLoadingSpinner>
|
|
|
|
</DModalBody>
|
2019-03-18 16:09:13 -04:00
|
|
|
|
|
|
|
<div class="modal-footer">
|
2022-07-05 13:41:31 -04:00
|
|
|
<ConditionalLoadingSpinner @condition={{this.reseeding}} @size="small" />
|
|
|
|
<DButton @action={{action "reseed"}} @class="btn-danger" @label="admin.reseed.modal.replace" @disabled={{this.reseeding}} />
|
2019-03-25 11:47:55 -04:00
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#unless this.reseeding}}
|
2022-06-30 06:30:50 -04:00
|
|
|
<DModalCancel @close={{route-action "closeModal"}} />
|
2019-03-25 11:47:55 -04:00
|
|
|
{{/unless}}
|
2019-03-18 16:09:13 -04:00
|
|
|
</div>
|