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