adds warning prop to ModalContent to enable warning buttons
This commit is contained in:
parent
aef14aa35d
commit
8aeb1654ff
|
@ -9,6 +9,7 @@
|
|||
export let title = undefined
|
||||
export let size = "S"
|
||||
export let cancelText = "Cancel"
|
||||
export let warning = false
|
||||
export let confirmText = "Confirm"
|
||||
export let showCancelButton = true
|
||||
export let showConfirmButton = true
|
||||
|
@ -60,6 +61,7 @@
|
|||
{/if}
|
||||
{#if showConfirmButton}
|
||||
<Button
|
||||
{warning}
|
||||
group
|
||||
cta
|
||||
{...$$restProps}
|
||||
|
|
|
@ -65,6 +65,7 @@
|
|||
|
||||
<Modal bind:this={deleteUserModal}>
|
||||
<ModalContent
|
||||
warning
|
||||
title="Delete User"
|
||||
confirmText="Delete user"
|
||||
cancelText="Cancel"
|
||||
|
|
Loading…
Reference in New Issue