2024-08-23 20:19:26 +08:00
|
|
|
import { classNames } from "@ember-decorators/component";
|
2023-06-16 10:08:26 +08:00
|
|
|
import NotificationsButtonComponent from "select-kit/components/notifications-button";
|
2024-08-23 20:19:26 +08:00
|
|
|
import {
|
|
|
|
pluginApiIdentifiers,
|
|
|
|
selectKitOptions,
|
|
|
|
} from "select-kit/components/select-kit";
|
2023-06-16 10:08:26 +08:00
|
|
|
import { threadNotificationButtonLevels } from "discourse/plugins/chat/discourse/lib/chat-notification-levels";
|
|
|
|
|
2024-08-23 20:19:26 +08:00
|
|
|
@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;
|
|
|
|
}
|