2017-11-21 11:53:09 +01:00
|
|
|
import NotificationOptionsComponent from "select-kit/components/notifications-button";
|
2017-10-20 05:34:10 -07:00
|
|
|
|
|
|
|
export default NotificationOptionsComponent.extend({
|
2017-11-21 11:53:09 +01:00
|
|
|
pluginApiIdentifiers: ["grouo-notifications-button"],
|
2017-10-20 05:34:10 -07:00
|
|
|
classNames: ["group-notifications-button"],
|
|
|
|
i18nPrefix: "groups.notifications",
|
2017-11-21 11:53:09 +01:00
|
|
|
allowInitialValueMutation: false,
|
2017-10-20 05:34:10 -07:00
|
|
|
|
2017-11-21 11:53:09 +01:00
|
|
|
mutateValue(value) {
|
2019-05-27 10:15:39 +02:00
|
|
|
this.group.setNotification(value, this.get("user.id"));
|
2017-10-20 05:34:10 -07:00
|
|
|
}
|
|
|
|
});
|