discourse/app/assets/javascripts/select-kit/components/topic-notifications-options.js
Robin Ward 07813c4a91
Convert select-kit from es6 to js (#9246)
* Convert select-kit from es6 to js

* Hide more git blames
2020-03-20 12:40:32 -04:00

21 lines
637 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: "i18nPrefix",
i18nPostfix: "i18nPostfix"
},
i18nPrefix: "topic.notifications",
i18nPostfix: computed("topic.archetype", function() {
return this.topic.archetype === "private_message" ? "_pm" : "";
})
});