mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
FIX: use the correct notification levels descriptions for PMs
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
import NotificationOptionsComponent from "select-kit/components/notifications-button";
|
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";
|
import { topicLevels } from "discourse/lib/notification-levels";
|
||||||
|
|
||||||
export default NotificationOptionsComponent.extend({
|
export default NotificationOptionsComponent.extend({
|
||||||
@ -9,6 +9,11 @@ export default NotificationOptionsComponent.extend({
|
|||||||
i18nPrefix: "topic.notifications",
|
i18nPrefix: "topic.notifications",
|
||||||
allowInitialValueMutation: false,
|
allowInitialValueMutation: false,
|
||||||
|
|
||||||
|
@computed("topic.archetype")
|
||||||
|
i18nPostfix(archetype) {
|
||||||
|
return archetype === "private_message" ? "_pm" : "";
|
||||||
|
},
|
||||||
|
|
||||||
@on("didInsertElement")
|
@on("didInsertElement")
|
||||||
_bindGlobalLevelChanged() {
|
_bindGlobalLevelChanged() {
|
||||||
this.appEvents.on("topic-notifications-button:changed", (msg) => {
|
this.appEvents.on("topic-notifications-button:changed", (msg) => {
|
||||||
|
Reference in New Issue
Block a user