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

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