mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 21:00:29 +08:00
371bbadb92
* Run no-implicit-this codemod for app templates * Run tagless-ember-components-codemod for plugins * Turn on no-implicit-this lint
30 lines
1.1 KiB
Handlebars
30 lines
1.1 KiB
Handlebars
<DModalBody @title="admin.user.silence_modal_title">
|
|
<ConditionalLoadingSpinner @condition={{this.loadingUser}}>
|
|
|
|
{{#if this.errorMessage}}
|
|
<div class="alert alert-error">{{this.errorMessage}}</div>
|
|
{{/if}}
|
|
|
|
<AdminPenaltyHistory @user={{this.user}} />
|
|
|
|
<div class="until-controls">
|
|
<label>
|
|
<FutureDateInput @class="silence-until" @label="admin.user.silence_duration" @clearable={{false}} @input={{this.silenceUntil}} @onChangeInput={{action (mut this.silenceUntil)}} />
|
|
</label>
|
|
</div>
|
|
|
|
<SilenceDetails @reason={{this.reason}} @message={{this.message}} />
|
|
{{#if this.postId}}
|
|
<PenaltyPostAction @postId={{this.postId}} @postAction={{this.postAction}} @postEdit={{this.postEdit}} />
|
|
{{/if}}
|
|
|
|
</ConditionalLoadingSpinner>
|
|
|
|
</DModalBody>
|
|
|
|
<div class="modal-footer">
|
|
<DButton @class="btn-danger perform-silence" @action={{action "silence"}} @disabled={{this.submitDisabled}} @icon="microphone-slash" @label="admin.user.silence" />
|
|
<DModalCancel @close={{route-action "closeModal"}} />
|
|
<ConditionalLoadingSpinner @condition={{this.loading}} @size="small" />
|
|
</div>
|