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/select-box-kit/components/category-notifications-button.js.es6
2017-11-09 10:57:53 -08:00

14 lines
546 B
JavaScript

import NotificationOptionsComponent from "select-box-kit/components/notifications-button";
export default NotificationOptionsComponent.extend({
classNames: "category-notifications-button",
isHidden: Ember.computed.or("category.deleted", "site.isMobileDevice"),
i18nPrefix: "category.notifications",
value: Ember.computed.alias("category.notification_level"),
headerComponent: "category-notifications-button/category-notifications-button-header",
selectValueFunction(value) {
this.get("category").setNotification(value);
}
});