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

13 lines
416 B
Plaintext
Raw Normal View History

import NotificationOptionsComponent from "select-kit/components/notifications-button";
export default NotificationOptionsComponent.extend({
pluginApiIdentifiers: ["grouo-notifications-button"],
classNames: ["group-notifications-button"],
i18nPrefix: "groups.notifications",
allowInitialValueMutation: false,
mutateValue(value) {
2017-11-10 02:57:53 +08:00
this.get("group").setNotification(value, this.get("user.id"));
}
});