diff --git a/app/assets/javascripts/discourse/components/group-notifications-button.js.es6 b/app/assets/javascripts/discourse/components/group-notifications-button.js.es6 deleted file mode 100644 index 238e85b173d..00000000000 --- a/app/assets/javascripts/discourse/components/group-notifications-button.js.es6 +++ /dev/null @@ -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")); - } - } -}); diff --git a/app/assets/javascripts/select-box-kit/components/group-notifications-button.js.es6 b/app/assets/javascripts/select-box-kit/components/group-notifications-button.js.es6 new file mode 100644 index 00000000000..81477d2e476 --- /dev/null +++ b/app/assets/javascripts/select-box-kit/components/group-notifications-button.js.es6 @@ -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")); + } + } +});