From 95e0aa059c9f9573dbc9f25bca6ed5da89462893 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 29 Jan 2018 19:15:03 -0500 Subject: [PATCH] UX: The delete button is also a dropdown --- .../javascripts/admin/templates/components/flagged-post.hbs | 4 +++- .../select-kit/components/admin-delete-flag-dropdown.js.es6 | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/admin/templates/components/flagged-post.hbs b/app/assets/javascripts/admin/templates/components/flagged-post.hbs index ac08b5f203c..04b953c451f 100644 --- a/app/assets/javascripts/admin/templates/components/flagged-post.hbs +++ b/app/assets/javascripts/admin/templates/components/flagged-post.hbs @@ -103,7 +103,9 @@ icon="external-link" label="admin.flags.ignore_flag"}} - {{admin-delete-flag-dropdown post=flaggedPost removeAfter=(action "removeAfter")}} + {{admin-delete-flag-dropdown + post=flaggedPost + removeAfter=(action "removeAfter")}} {{#unless suspended}} {{d-button diff --git a/app/assets/javascripts/select-kit/components/admin-delete-flag-dropdown.js.es6 b/app/assets/javascripts/select-kit/components/admin-delete-flag-dropdown.js.es6 index 2144a1512a6..a6f87d26066 100644 --- a/app/assets/javascripts/select-kit/components/admin-delete-flag-dropdown.js.es6 +++ b/app/assets/javascripts/select-kit/components/admin-delete-flag-dropdown.js.es6 @@ -9,7 +9,7 @@ export default DropdownSelectBox.extend({ computeHeaderContent() { let content = this.baseHeaderComputedContent(); - content.name = I18n.t("admin.flags.delete"); + content.name = `${I18n.t("admin.flags.delete")}...`; return content; },