discourse/app/assets/javascripts/select-kit/addon/components/topic-notifications-options.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
632 B
JavaScript
Raw Normal View History

import NotificationsButtonComponent from "select-kit/components/notifications-button";
import { computed } from "@ember/object";
2017-10-20 03:51:08 +08:00
import { topicLevels } from "discourse/lib/notification-levels";
export default NotificationsButtonComponent.extend({
pluginApiIdentifiers: ["topic-notifications-options"],
classNames: ["topic-notifications-options"],
2017-10-20 03:51:08 +08:00
content: topicLevels,
selectKitOptions: {
i18nPrefix: "topic.notifications",
i18nPostfix: "i18nPostfix",
showCaret: true,
},
i18nPostfix: computed("topic.archetype", function () {
return this.topic.archetype === "private_message" ? "_pm" : "";
}),
2017-10-20 03:51:08 +08:00
});