mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 00:11:39 +08:00
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 />`
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
import { hash } from "@ember/helper";
|
||||
import CategoryNotificationsButton from "select-kit/components/category-notifications-button";
|
||||
import CategoryNotificationsTracking from "discourse/components/category-notifications-tracking";
|
||||
import BaseField from "./da-base-field";
|
||||
import DAFieldDescription from "./da-field-description";
|
||||
import DAFieldLabel from "./da-field-label";
|
||||
@ -11,10 +10,9 @@ export default class CategoryNotficationLevelField extends BaseField {
|
||||
<DAFieldLabel @label={{@label}} @field={{@field}} />
|
||||
|
||||
<div class="controls">
|
||||
<CategoryNotificationsButton
|
||||
@value={{@field.metadata.value}}
|
||||
<CategoryNotificationsTracking
|
||||
@levelId={{@field.metadata.value}}
|
||||
@onChange={{this.mutValue}}
|
||||
@options={{hash showFullTitle=true}}
|
||||
/>
|
||||
|
||||
<DAFieldDescription @description={{@description}} />
|
||||
|
Reference in New Issue
Block a user