Skip to content

Commit

Permalink
Merge pull request #1214 from PrefectHQ/modal-actions
Browse files Browse the repository at this point in the history
Hide PModal footer when no actions are passed
  • Loading branch information
aaazzam authored Apr 17, 2024
2 parents e7df4da + 2dcaab6 commit 235a7db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Modal/PModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<slot v-bind="modalScope" />
</div>

<div class="p-modal__footer">
<div v-if="$slots.actions" class="p-modal__footer">
<slot name="actions" v-bind="modalScope" />
<slot name="cancel" v-bind="modalScope">
<p-button class="p-modal__close-button" @click="modalScope.close">
Expand Down

0 comments on commit 235a7db

Please sign in to comment.