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