mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: show caret only in topic footer buttons dropdown select boxes (#9816)
This commit is contained in:
parent
f968155288
commit
9482ddff73
@ -390,7 +390,8 @@ createWidget("timeline-footer-controls", {
|
|||||||
showFullTitle: false,
|
showFullTitle: false,
|
||||||
appendReason: false,
|
appendReason: false,
|
||||||
placement: "bottom-end",
|
placement: "bottom-end",
|
||||||
mountedAsWidget: true
|
mountedAsWidget: true,
|
||||||
|
showCaret: false
|
||||||
},
|
},
|
||||||
["notificationLevel"]
|
["notificationLevel"]
|
||||||
)
|
)
|
||||||
|
@ -9,6 +9,10 @@ export default DropdownSelectBoxComponent.extend({
|
|||||||
pluginApiIdentifiers: ["pinned-options"],
|
pluginApiIdentifiers: ["pinned-options"],
|
||||||
classNames: ["pinned-options"],
|
classNames: ["pinned-options"],
|
||||||
|
|
||||||
|
selectKitOptions: {
|
||||||
|
showCaret: true
|
||||||
|
},
|
||||||
|
|
||||||
modifySelection(content) {
|
modifySelection(content) {
|
||||||
const pinnedGlobally = this.get("topic.pinned_globally");
|
const pinnedGlobally = this.get("topic.pinned_globally");
|
||||||
const pinned = this.value;
|
const pinned = this.value;
|
||||||
|
@ -9,6 +9,7 @@ export default Component.extend({
|
|||||||
placement: "bottom-start",
|
placement: "bottom-start",
|
||||||
notificationLevel: null,
|
notificationLevel: null,
|
||||||
topic: null,
|
topic: null,
|
||||||
|
showCaret: true,
|
||||||
|
|
||||||
@action
|
@action
|
||||||
changeTopicNotificationLevel(levelId) {
|
changeTopicNotificationLevel(levelId) {
|
||||||
|
@ -9,7 +9,8 @@ export default NotificationsButtonComponent.extend({
|
|||||||
|
|
||||||
selectKitOptions: {
|
selectKitOptions: {
|
||||||
i18nPrefix: "i18nPrefix",
|
i18nPrefix: "i18nPrefix",
|
||||||
i18nPostfix: "i18nPostfix"
|
i18nPostfix: "i18nPostfix",
|
||||||
|
showCaret: true
|
||||||
},
|
},
|
||||||
|
|
||||||
i18nPrefix: "topic.notifications",
|
i18nPrefix: "topic.notifications",
|
||||||
|
@ -7,4 +7,6 @@
|
|||||||
shouldDisplayClearableButton=shouldDisplayClearableButton
|
shouldDisplayClearableButton=shouldDisplayClearableButton
|
||||||
}}
|
}}
|
||||||
|
|
||||||
{{d-icon caretIcon class="caret-icon"}}
|
{{#if selectKit.options.showCaret}}
|
||||||
|
{{d-icon caretIcon class="caret-icon"}}
|
||||||
|
{{/if}}
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
showFullTitle=showFullTitle
|
showFullTitle=showFullTitle
|
||||||
placement=placement
|
placement=placement
|
||||||
preventsClickPropagation=true
|
preventsClickPropagation=true
|
||||||
|
showCaret=showCaret
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user