DEV: Add priority to post menu user-tip (#29322)

…and spread out existing priorities
This commit is contained in:
Jarek Radosz 2024-10-22 18:51:19 +02:00 committed by GitHub
parent 91c674f0bc
commit f45559a8b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 12 additions and 5 deletions

View File

@ -64,7 +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}}
@priority={{1000}}
/>
{{/if}}

View File

@ -12,7 +12,7 @@
@titleText={{i18n "user_tips.suggested_topics.title"}}
@contentText={{i18n "user_tips.suggested_topics.content"}}
@placement="top-start"
@priority={{10}}
@priority={{700}}
/>
{{/unless}}

View File

@ -97,7 +97,7 @@
@triggerSelector=".notifications-button"
@titleText={{i18n "user_tips.topic_notification_levels.title"}}
@contentText={{i18n "user_tips.topic_notification_levels.content"}}
@priority={{20}}
@priority={{800}}
/>
{{/if}}

View File

@ -67,7 +67,7 @@
@contentText={{i18n "user_tips.topic_timeline.content"}}
@placement="left"
@triggerSelector=".timeline-scrollarea-wrapper"
@priority={{30}}
@priority={{900}}
/>
<div class="timeline-scrollarea-wrapper">

View File

@ -4,5 +4,12 @@ import { registerWidgetShim } from "discourse/widgets/render-glimmer";
registerWidgetShim(
"post-user-tip-shim",
"div.post-user-tip-shim",
hbs`<UserTip @id="post_menu" @triggerSelector=".post-controls .actions .show-more-actions" @placement="top" @titleText={{i18n "user_tips.post_menu.title"}} @contentText={{i18n "user_tips.post_menu.content"}} />`
hbs`<UserTip
@id="post_menu"
@triggerSelector=".post-controls .actions .show-more-actions"
@placement="top"
@titleText={{i18n "user_tips.post_menu.title"}}
@contentText={{i18n "user_tips.post_menu.content"}}
@priority={{600}}
/>`
);