This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/components/group-notifications-button.js.es6

18 lines
458 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: {
onSelectRow(content) {
this._super(content);
this.get("group").setNotification(this.get("value"), this.get("user.id"));
}
}
});