FEATURE: add silence reason dropdown to admin penalty reason
Adds dropdown list for pre-defined penalty options to silence to mirror options on suspension list.
This commit is contained in:
parent
e74d727e2c
commit
24431f47a3
|
@ -18,9 +18,17 @@
|
||||||
/>
|
/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else if (eq @penaltyType "silence")}}
|
{{else if (eq @penaltyType "silence")}}
|
||||||
<label class="silence-reason-title">{{html-safe
|
<label class="silence-reason-title">
|
||||||
(i18n "admin.user.silence_reason_label")
|
{{html-safe (i18n "admin.user.silence_reason_label")}}</label>
|
||||||
}}</label>
|
|
||||||
|
<ComboBox
|
||||||
|
@content={{this.reasons}}
|
||||||
|
@value={{this.selectedReason}}
|
||||||
|
@class="silence-reason"
|
||||||
|
@onChange={{this.setSelectedReason}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{{#if this.isCustomReason}}
|
||||||
<TextField
|
<TextField
|
||||||
@value={{this.customReason}}
|
@value={{this.customReason}}
|
||||||
@class="silence-reason"
|
@class="silence-reason"
|
||||||
|
@ -28,6 +36,7 @@
|
||||||
@placeholderKey="admin.user.silence_reason_placeholder"
|
@placeholderKey="admin.user.silence_reason_placeholder"
|
||||||
/>
|
/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="penalty-message-controls">
|
<div class="penalty-message-controls">
|
||||||
|
|
Loading…
Reference in New Issue