2022-06-30 18:30:50 +08:00
|
|
|
<DModalBody @title="admin.user.silence_modal_title">
|
2022-07-06 01:41:31 +08:00
|
|
|
<ConditionalLoadingSpinner @condition={{this.loadingUser}}>
|
2017-11-14 02:41:36 +08:00
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.errorMessage}}
|
|
|
|
<div class="alert alert-error">{{this.errorMessage}}</div>
|
2020-11-03 23:38:56 +08:00
|
|
|
{{/if}}
|
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
<AdminPenaltyHistory @user={{this.user}} />
|
2021-07-13 02:36:56 +08:00
|
|
|
|
2017-11-14 02:41:36 +08:00
|
|
|
<div class="until-controls">
|
|
|
|
<label>
|
2022-07-06 01:41:31 +08:00
|
|
|
<FutureDateInput @class="silence-until" @label="admin.user.silence_duration" @clearable={{false}} @input={{this.silenceUntil}} @onChangeInput={{action (mut this.silenceUntil)}} />
|
2017-11-14 02:41:36 +08:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
<SilenceDetails @reason={{this.reason}} @message={{this.message}} />
|
|
|
|
{{#if this.postId}}
|
|
|
|
<PenaltyPostAction @postId={{this.postId}} @postAction={{this.postAction}} @postEdit={{this.postEdit}} />
|
2018-01-31 05:31:29 +08:00
|
|
|
{{/if}}
|
2017-11-14 02:41:36 +08:00
|
|
|
|
2022-06-30 18:30:50 +08:00
|
|
|
</ConditionalLoadingSpinner>
|
2017-11-14 02:41:36 +08:00
|
|
|
|
2022-06-30 18:30:50 +08:00
|
|
|
</DModalBody>
|
2017-11-14 02:41:36 +08:00
|
|
|
|
|
|
|
<div class="modal-footer">
|
2022-07-06 01:41:31 +08:00
|
|
|
<DButton @class="btn-danger perform-silence" @action={{action "silence"}} @disabled={{this.submitDisabled}} @icon="microphone-slash" @label="admin.user.silence" />
|
2022-06-30 18:30:50 +08:00
|
|
|
<DModalCancel @close={{route-action "closeModal"}} />
|
2022-07-06 01:41:31 +08:00
|
|
|
<ConditionalLoadingSpinner @condition={{this.loading}} @size="small" />
|
2018-01-11 02:19:37 +08:00
|
|
|
</div>
|