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

Failed to ignore revisions in .git-blame-ignore-revs.

20 lines
523 B
JavaScript
Raw Normal View History

import Component from "@ember/component";
import { action } from "@ember/object";
export default Component.extend({
layoutName: "select-kit/templates/components/topic-notifications-button",
classNames: ["topic-notifications-button"],
appendReason: true,
2017-10-19 12:51:08 -07:00
showFullTitle: true,
placement: "bottom-start",
notificationLevel: null,
topic: null,
@action
changeTopicNotificationLevel(levelId) {
if (levelId !== this.notificationLevel) {
this.topic.details.updateNotifications(levelId);
}
}
2017-10-19 12:51:08 -07:00
});