2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00
discourse/app/assets/javascripts/discourse/components/group-notifications-button.js.es6
2017-10-19 12:51:08 -07:00

17 lines
455 B
JavaScript

import NotificationOptionsComponent from "discourse/components/notifications-button";
export default NotificationOptionsComponent.extend({
classNames: ["group-notifications-button"],
value: Em.computed.alias("group.group_user.notification_level"),
i18nPrefix: "groups.notifications",
actions: {
onSelect(content) {
this._super(content);
this.get("group").setNotification(this.get("value"), this.get("user.id"));
}
}
});