From 06777aa47d1982841db1b562e51a61ddeba8f46f Mon Sep 17 00:00:00 2001 From: OsamaSayegh Date: Mon, 11 Jun 2018 12:35:13 +0300 Subject: [PATCH] FIX: use the correct notification levels descriptions for PMs --- .../components/topic-notifications-options.js.es6 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/select-kit/components/topic-notifications-options.js.es6 b/app/assets/javascripts/select-kit/components/topic-notifications-options.js.es6 index 4feb3b003f1..dc48e82f09b 100644 --- a/app/assets/javascripts/select-kit/components/topic-notifications-options.js.es6 +++ b/app/assets/javascripts/select-kit/components/topic-notifications-options.js.es6 @@ -1,5 +1,5 @@ import NotificationOptionsComponent from "select-kit/components/notifications-button"; -import { on } from "ember-addons/ember-computed-decorators"; +import { default as computed, on } from "ember-addons/ember-computed-decorators"; import { topicLevels } from "discourse/lib/notification-levels"; export default NotificationOptionsComponent.extend({ @@ -9,6 +9,11 @@ export default NotificationOptionsComponent.extend({ i18nPrefix: "topic.notifications", allowInitialValueMutation: false, + @computed("topic.archetype") + i18nPostfix(archetype) { + return archetype === "private_message" ? "_pm" : ""; + }, + @on("didInsertElement") _bindGlobalLevelChanged() { this.appEvents.on("topic-notifications-button:changed", (msg) => {