mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
This commit introduces <NotificationsTracking /> which is a wrapper component around <DMenu /> which replaces the select-kit component <TopicNotificationsButton />. Each tracking case has its dedicated component: - topic -> `<TopicNotificationsTracking />` - group -> `<GroupNotificationsTracking />` - tag -> `<TagNotificationsTracking />` - category -> `<CategoryNotificationsTracking />` - chat thread -> `<ThreadNotificationsTracking />`
18 lines
602 B
Plaintext
18 lines
602 B
Plaintext
import NotificationsTracking from "discourse/components/notifications-tracking";
|
|
import { threadNotificationButtonLevels } from "discourse/plugins/chat/discourse/lib/chat-notification-levels";
|
|
|
|
const ThreadNotificationsTracking = <template>
|
|
<NotificationsTracking
|
|
@onChange={{@onChange}}
|
|
@levels={{threadNotificationButtonLevels}}
|
|
@levelId={{@levelId}}
|
|
@showCaret={{false}}
|
|
@showFullTitle={{false}}
|
|
@prefix="chat.thread.notifications"
|
|
class="thread-notifications-tracking"
|
|
@triggerClass="btn-transparent"
|
|
/>
|
|
</template>;
|
|
|
|
export default ThreadNotificationsTracking;
|