discourse/app/assets/javascripts/select-kit/components/topic-notifications-button.js.es6

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

17 lines
468 B
Plaintext
Raw Normal View History

import Component from "@ember/component";
export default Component.extend({
layoutName: "select-kit/templates/components/topic-notifications-button",
classNames: ["topic-notifications-button"],
appendReason: true,
2017-10-20 03:51:08 +08:00
showFullTitle: true,
actions: {
changeTopicNotificationLevel(newNotificationLevel) {
if (newNotificationLevel !== this.notificationLevel) {
this.topic.details.updateNotifications(newNotificationLevel);
}
}
}
2017-10-20 03:51:08 +08:00
});