Skip to content

Commit

Permalink
fix(NcAppNavigationItem): use $scopedSlots instead of $slots
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
st3iny committed Oct 22, 2024
1 parent 91a7841 commit 5cde9ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/NcAppNavigationItem/NcAppNavigationItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,12 @@ Just set the `pinned` prop.
<div v-if="hasUtils && !editingActive"
class="app-navigation-entry__utils"
:class="{'app-navigation-entry__utils--display-actions': forceDisplayActions || menuOpenLocalValue || menuOpen }">
<div v-if="$slots.counter"
<div v-if="$scopedSlots.counter"
class="app-navigation-entry__counter-wrapper">
<!-- @slot Slot for the `NcCounterBubble` -->
<slot name="counter" />
</div>
<NcActions v-if="$slots.actions || (editable && !editingActive) || undo"
<NcActions v-if="$scopedSlots.actions || (editable && !editingActive) || undo"
ref="actions"
:inline="inlineActions"
class="app-navigation-entry__actions"
Expand Down Expand Up @@ -641,7 +641,7 @@ export default {
},
hasUtils() {
if (this.$slots.actions || this.$slots.counter || this.editable || this.undo) {
if (this.$scopedSlots.actions || this.$scopedSlots.counter || this.editable || this.undo) {
return true
}
return false
Expand Down Expand Up @@ -731,8 +731,8 @@ export default {
},
updateSlotInfo() {
this.hasChildren = !!this.$slots.default
this.collapsible = this.allowCollapse && !!this.$slots.default
this.hasChildren = !!this.$scopedSlots.default
this.collapsible = this.allowCollapse && !!this.$scopedSlots.default
},
/**
Expand Down

0 comments on commit 5cde9ca

Please sign in to comment.