mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 12:13:58 -06:00
[FIX] dropdown tracking not showing in groups
This commit is contained in:
parent
fe1e78ddf4
commit
fd7af2e146
@ -1,17 +0,0 @@
|
||||
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"));
|
||||
}
|
||||
}
|
||||
});
|
@ -0,0 +1,14 @@
|
||||
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",
|
||||
|
||||
actions: {
|
||||
onSelect(value) {
|
||||
value = this.defaultOnSelect(value);
|
||||
this.get("group").setNotification(value, this.get("user.id"));
|
||||
}
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue
Block a user