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

13 lines
416 B
JavaScript

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) {
this.get("group").setNotification(value, this.get("user.id"));
}
});