2020-02-03 08:22:14 -05:00
|
|
|
import NotificationsButtonComponent from "select-kit/components/notifications-button";
|
|
|
|
import { computed } from "@ember/object";
|
2017-10-19 15:51:08 -04:00
|
|
|
import { topicLevels } from "discourse/lib/notification-levels";
|
|
|
|
|
2020-02-03 08:22:14 -05:00
|
|
|
export default NotificationsButtonComponent.extend({
|
2017-11-21 05:53:09 -05:00
|
|
|
pluginApiIdentifiers: ["topic-notifications-options"],
|
2020-02-03 08:22:14 -05:00
|
|
|
classNames: ["topic-notifications-options"],
|
2017-10-19 15:51:08 -04:00
|
|
|
content: topicLevels,
|
|
|
|
|
2020-02-03 08:22:14 -05:00
|
|
|
selectKitOptions: {
|
2020-07-15 12:55:32 -04:00
|
|
|
i18nPrefix: "topic.notifications",
|
2020-05-18 08:07:40 -04:00
|
|
|
i18nPostfix: "i18nPostfix",
|
|
|
|
showCaret: true,
|
2018-06-11 05:35:13 -04:00
|
|
|
},
|
|
|
|
|
2020-02-03 08:22:14 -05:00
|
|
|
i18nPostfix: computed("topic.archetype", function () {
|
|
|
|
return this.topic.archetype === "private_message" ? "_pm" : "";
|
2020-02-13 04:01:28 -05:00
|
|
|
}),
|
2017-10-19 15:51:08 -04:00
|
|
|
});
|