Skip to content

Commit

Permalink
Fix k-help component & menu display
Browse files Browse the repository at this point in the history
  • Loading branch information
50l3r committed Oct 19, 2023
1 parent 5281142 commit 70fc0f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/components/feedback/k-help/k-help.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
</div>

<div class="px-4 py-2">
{{ text }}
<slot v-if="hasSlot('default')"></slot>
<template v-else>{{ text }}</template>
</div>
</div>
</template>
Expand All @@ -35,6 +36,11 @@
default: 'seal-question',
description: 'Icono'
}
},
setup(_props, { slots }) {
const hasSlot = (name: string) => !!slots[name]
return { hasSlot }
}
})
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/main/partials/aside/menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
}
const checkRoles = (menu: any) => {
if (menu.auth) return menu.auth
if (menu.auth !== undefined) return !!menu.auth
return true
}
Expand Down

0 comments on commit 70fc0f8

Please sign in to comment.