From 24431f47a337a970da9a581d8c5048895269042a Mon Sep 17 00:00:00 2001 From: Jeff Wong Date: Tue, 5 Sep 2023 15:42:02 -0700 Subject: [PATCH] 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. --- .../addon/components/admin-penalty-reason.hbs | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/admin/addon/components/admin-penalty-reason.hbs b/app/assets/javascripts/admin/addon/components/admin-penalty-reason.hbs index 38e0358c9bb..1244f230661 100644 --- a/app/assets/javascripts/admin/addon/components/admin-penalty-reason.hbs +++ b/app/assets/javascripts/admin/addon/components/admin-penalty-reason.hbs @@ -18,15 +18,24 @@ /> {{/if}} {{else if (eq @penaltyType "silence")}} - - + {{html-safe (i18n "admin.user.silence_reason_label")}} + + + + {{#if this.isCustomReason}} + + {{/if}} {{/if}}