mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
DEV: Set priorities on user tips (#29176)
Currently the topic timeline tip appears before the suggested topics one only due to a small implementation detail in the latter. This ensures that tips appear in the expected order when more than one of these components is rendered at the same time.
This commit is contained in:
parent
bf773e70bd
commit
a3ea2886dc
|
@ -64,6 +64,7 @@ export default class Notifications extends Component {
|
|||
@titleText={{i18n "user_tips.first_notification.title"}}
|
||||
@contentText={{i18n "user_tips.first_notification.content"}}
|
||||
@showSkipButton={{true}}
|
||||
@priority={{40}}
|
||||
/>
|
||||
{{/if}}
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
@titleText={{i18n "user_tips.suggested_topics.title"}}
|
||||
@contentText={{i18n "user_tips.suggested_topics.content"}}
|
||||
@placement="top-start"
|
||||
@priority={{10}}
|
||||
/>
|
||||
{{/unless}}
|
||||
|
||||
|
|
|
@ -97,6 +97,7 @@
|
|||
@triggerSelector=".notifications-button"
|
||||
@titleText={{i18n "user_tips.topic_notification_levels.title"}}
|
||||
@contentText={{i18n "user_tips.topic_notification_levels.content"}}
|
||||
@priority={{20}}
|
||||
/>
|
||||
{{/if}}
|
||||
|
||||
|
|
|
@ -67,6 +67,7 @@
|
|||
@contentText={{i18n "user_tips.topic_timeline.content"}}
|
||||
@placement="left"
|
||||
@triggerSelector=".timeline-scrollarea-wrapper"
|
||||
@priority={{30}}
|
||||
/>
|
||||
|
||||
<div class="timeline-scrollarea-wrapper">
|
||||
|
|
Loading…
Reference in New Issue
Block a user