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