discourse/app/assets/javascripts/select-box-kit/components/group-notifications-button.js.es6

12 lines
406 B
Plaintext
Raw Normal View History

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-10 02:57:53 +08:00
selectValueFunction(value) {
this.get("group").setNotification(value, this.get("user.id"));
}
});