2019-11-08 11:32:20 -05:00
|
|
|
import { or, alias } from "@ember/object/computed";
|
2017-11-21 05:53:09 -05:00
|
|
|
import NotificationOptionsComponent from "select-kit/components/notifications-button";
|
|
|
|
|
|
|
|
export default NotificationOptionsComponent.extend({
|
|
|
|
pluginApiIdentifiers: ["category-notifications-button"],
|
|
|
|
classNames: "category-notifications-button",
|
2019-11-08 11:32:20 -05:00
|
|
|
isHidden: or("category.deleted"),
|
|
|
|
headerIcon: alias("iconForSelectedDetails"),
|
2017-11-21 05:53:09 -05:00
|
|
|
i18nPrefix: "category.notifications",
|
|
|
|
showFullTitle: false,
|
|
|
|
allowInitialValueMutation: false,
|
|
|
|
|
|
|
|
mutateValue(value) {
|
2019-05-27 04:15:39 -04:00
|
|
|
this.category.setNotification(value);
|
2018-10-01 11:41:23 -04:00
|
|
|
},
|
|
|
|
|
|
|
|
deselect() {}
|
2017-11-21 05:53:09 -05:00
|
|
|
});
|