Skip to content

A platform for community discussion. Free, open, simple.

UX: Remove redundant 'You have selected N topics.' in topic bulk select modal (#38727)

Natalie Tay8fc971b21f31
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index dbe4dd0a5ec..ca88b354e2e 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -3727,9 +3727,6 @@ en:
notification_level: "Update notifications"
change_notification_level: "Change Notification Level"
choose_new_category: "Choose the new category for the topics:"
- selected:
- one: "You have selected <b>%{count}</b> topic."
- other: "You have selected <b>%{count}</b> topics."
selected_sole_category:
one: "You have selected <b>%{count}</b> topic from category:"
other: "You have selected <b>%{count}</b> topics from category:"
diff --git a/frontend/discourse/app/components/modal/bulk-topic-actions.gjs b/frontend/discourse/app/components/modal/bulk-topic-actions.gjs
index e752cc3d2dc..2b1bc40cbd9 100644
--- a/frontend/discourse/app/components/modal/bulk-topic-actions.gjs
+++ b/frontend/discourse/app/components/modal/bulk-topic-actions.gjs
@@ -457,8 +457,8 @@ export default class BulkTopicActions extends Component {
}}</p>
{{/if}}
- <div class="topic-bulk-actions-modal__selection-info">
- {{#if this.showSoleCategoryTip}}
+ {{#if this.showSoleCategoryTip}}
+ <div class="topic-bulk-actions-modal__selection-info">
{{trustHTML
(i18n
"topics.bulk.selected_sole_category"
@@ -466,15 +466,8 @@ export default class BulkTopicActions extends Component {
)
}}
{{trustHTML this.soleCategoryBadgeHTML}}
- {{else}}
- {{trustHTML
- (i18n
- "topics.bulk.selected"
- )
- }}
- {{/if}}
- </div>
+ </div>
+ {{/if}}
{{#if this.isCategoryAction}}
<p>