mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 14:53:41 +08:00
48193767bf
Automatically generated by `eslint --fix` to satisfy the updated configuration
20 lines
632 B
JavaScript
20 lines
632 B
JavaScript
import { computed } from "@ember/object";
|
|
import { topicLevels } from "discourse/lib/notification-levels";
|
|
import NotificationsButtonComponent from "select-kit/components/notifications-button";
|
|
|
|
export default NotificationsButtonComponent.extend({
|
|
pluginApiIdentifiers: ["topic-notifications-options"],
|
|
classNames: ["topic-notifications-options"],
|
|
content: topicLevels,
|
|
|
|
selectKitOptions: {
|
|
i18nPrefix: "topic.notifications",
|
|
i18nPostfix: "i18nPostfix",
|
|
showCaret: true,
|
|
},
|
|
|
|
i18nPostfix: computed("topic.archetype", function () {
|
|
return this.topic.archetype === "private_message" ? "_pm" : "";
|
|
}),
|
|
});
|