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,
|
||||
appendReason: false,
|
||||
placement: "bottom-end",
|
||||
mountedAsWidget: true
|
||||
mountedAsWidget: true,
|
||||
showCaret: false
|
||||
},
|
||||
["notificationLevel"]
|
||||
)
|
||||
|
|
|
@ -9,6 +9,10 @@ export default DropdownSelectBoxComponent.extend({
|
|||
pluginApiIdentifiers: ["pinned-options"],
|
||||
classNames: ["pinned-options"],
|
||||
|
||||
selectKitOptions: {
|
||||
showCaret: true
|
||||
},
|
||||
|
||||
modifySelection(content) {
|
||||
const pinnedGlobally = this.get("topic.pinned_globally");
|
||||
const pinned = this.value;
|
||||
|
|
|
@ -9,6 +9,7 @@ export default Component.extend({
|
|||
placement: "bottom-start",
|
||||
notificationLevel: null,
|
||||
topic: null,
|
||||
showCaret: true,
|
||||
|
||||
@action
|
||||
changeTopicNotificationLevel(levelId) {
|
||||
|
|
|
@ -9,7 +9,8 @@ export default NotificationsButtonComponent.extend({
|
|||
|
||||
selectKitOptions: {
|
||||
i18nPrefix: "i18nPrefix",
|
||||
i18nPostfix: "i18nPostfix"
|
||||
i18nPostfix: "i18nPostfix",
|
||||
showCaret: true
|
||||
},
|
||||
|
||||
i18nPrefix: "topic.notifications",
|
||||
|
|
|
@ -7,4 +7,6 @@
|
|||
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
|
||||
placement=placement
|
||||
preventsClickPropagation=true
|
||||
showCaret=showCaret
|
||||
)
|
||||
}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue