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