Files
Joffrey JAFFEUXandGitHub 9cc7b411d9 DEV: replaces topic-notifications-options by DMenu (#30298)
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 />`
2024-12-16 19:59:18 +01:00

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;