mirror of
https://github.com/discourse/discourse.git
synced 2024-12-19 22:44:43 +08:00
fe6c91daa3
This covers all select-kit subclasses in core and core plugins Followup to https://github.com/discourse/discourse/pull/28489
19 lines
704 B
JavaScript
19 lines
704 B
JavaScript
import { classNames } from "@ember-decorators/component";
|
|
import NotificationsButtonComponent from "select-kit/components/notifications-button";
|
|
import {
|
|
pluginApiIdentifiers,
|
|
selectKitOptions,
|
|
} from "select-kit/components/select-kit";
|
|
import { threadNotificationButtonLevels } from "discourse/plugins/chat/discourse/lib/chat-notification-levels";
|
|
|
|
@classNames("thread-notifications-button")
|
|
@selectKitOptions({
|
|
i18nPrefix: "chat.thread.notifications",
|
|
showFullTitle: false,
|
|
btnCustomClasses: "btn-flat",
|
|
})
|
|
@pluginApiIdentifiers("thread-notifications-button")
|
|
export default class ThreadNotificationsButton extends NotificationsButtonComponent {
|
|
content = threadNotificationButtonLevels;
|
|
}
|