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