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