2017-10-20 08:34:10 -04:00
|
|
|
import NotificationOptionsComponent from "select-box-kit/components/notifications-button";
|
|
|
|
|
|
|
|
export default NotificationOptionsComponent.extend({
|
|
|
|
classNames: ["group-notifications-button"],
|
|
|
|
value: Ember.computed.alias("group.group_user.notification_level"),
|
|
|
|
i18nPrefix: "groups.notifications",
|
|
|
|
|
2017-11-09 13:57:53 -05:00
|
|
|
selectValueFunction(value) {
|
|
|
|
this.get("group").setNotification(value, this.get("user.id"));
|
2017-10-20 08:34:10 -04:00
|
|
|
}
|
|
|
|
});
|