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) {
|
2019-05-27 16:15:39 +08:00
|
|
|
this.group.setNotification(value, this.get("user.id"));
|
2017-10-20 20:34:10 +08:00
|
|
|
}
|
|
|
|
});
|