mirror of
https://github.com/discourse/discourse.git
synced 2025-01-01 16:36:19 +08:00
DEV: reintroduces category-notifications-button.js (#30398)
This file has been incorrectly removed in 41df705188
while it's still being used by plugins (https://github.com/discourse/discourse-circles).
This commit is contained in:
parent
f612e3ba17
commit
6e82a63d56
|
@ -0,0 +1,15 @@
|
|||
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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user