mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
DEV: Add priority to post menu user-tip (#29322)
…and spread out existing priorities
This commit is contained in:
parent
91c674f0bc
commit
f45559a8b3
@ -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}}
|
||||
|
||||
|
@ -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}}
|
||||
|
||||
|
@ -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}}
|
||||
|
||||
|
@ -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">
|
||||
|
@ -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}}
|
||||
/>`
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user