Skip to content

Commit

Permalink
fix(ktable): hide empty state cta if no text
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdehaven committed Nov 2, 2023
1 parent ef617b8 commit af09d15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/KTable/KTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@
{{ emptyStateMessage }}
</template>

<template #cta>
<template
v-if="emptyStateActionMessage"
#cta
>
<KButton
v-if="emptyStateActionMessage"
:appearance="searchInput ? 'tertiary' : 'primary'"
:data-testid="getTestIdString(emptyStateActionMessage)"
:icon="emptyStateActionButtonIcon"
Expand Down

0 comments on commit af09d15

Please sign in to comment.