discourse/js/select-kit/addon/components/category-notifications-button.js
2025-10-20 14:44:46 +01:00

16 lines
685 B
JavaScript
Vendored

import { readOnly } from "@ember/object/computed";
import { classNames } from "@ember-decorators/component";
import { i18n } from "discourse-i18n";
import NotificationOptionsComponent from "select-kit/components/notifications-button";
import { pluginApiIdentifiers, selectKitOptions } from "./select-kit";
@selectKitOptions({
i18nPrefix: "category.notifications",
showFullTitle: false,
headerAriaLabel: i18n("category.notifications.title"),
})
@pluginApiIdentifiers(["category-notifications-button"])
@classNames("category-notifications-button")
export default class CategoryNotificationsButton extends NotificationOptionsComponent {
@readOnly("category.deleted") isHidden;
}