Skip to content

Commit

Permalink
feat: Add slot for description of NcEmptyContent
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
  • Loading branch information
susnux committed Mar 15, 2023
1 parent 99e2d03 commit 813be06
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/NcEmptyContent/NcEmptyContent.vue
Expand Up @@ -93,9 +93,11 @@ export default {
{{ title }}
</h2>
</slot>
<p v-if="hasDescription">
{{ description }}
</p>
<slot name="description">
<p v-if="hasDescription">
{{ description }}
</p>
</slot>
<div v-if="$slots.action" class="empty-content__action">
<!-- @slot Optional slot for a button or the like -->
<slot name="action" />
Expand Down

0 comments on commit 813be06

Please sign in to comment.