mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-27 20:52:53 +08:00
16 lines
685 B
JavaScript
Vendored
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;
|
|
}
|