mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
22 lines
670 B
JavaScript
22 lines
670 B
JavaScript
import NotificationsButtonComponent from "select-kit/components/notifications-button";
|
|
import { topicLevels } from "discourse/lib/notification-levels";
|
|
import { computed } from "@ember/object";
|
|
|
|
export default NotificationsButtonComponent.extend({
|
|
pluginApiIdentifiers: ["topic-notifications-options"],
|
|
classNames: ["topic-notifications-options"],
|
|
content: topicLevels,
|
|
|
|
selectKitOptions: {
|
|
i18nPrefix: "topic.notifications",
|
|
i18nPostfix: "i18nPostfix",
|
|
showCaret: true,
|
|
},
|
|
|
|
i18nPrefix: "topic.notifications",
|
|
|
|
i18nPostfix: computed("topic.archetype", function () {
|
|
return this.topic.archetype === "private_message" ? "_pm" : "";
|
|
}),
|
|
});
|