add c ancel button for confirm alert (#407)
* add c ancel button for confirm alert * Refactor the No alertConfirm button --------- Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
2
client/composables/useAlert.js
vendored
2
client/composables/useAlert.js
vendored
@@ -48,7 +48,7 @@ export function useAlert () {
|
|||||||
timeout: autoClose,
|
timeout: autoClose,
|
||||||
actions: [
|
actions: [
|
||||||
{ label: options.successLabel ?? 'Yes', click: onSuccess },
|
{ label: options.successLabel ?? 'Yes', click: onSuccess },
|
||||||
...(onFailure ? [{ label: options.failureLabel ?? 'No', click: onFailure }] : [])
|
{ label: options.failureLabel ?? 'No', click: onFailure }
|
||||||
],
|
],
|
||||||
...options
|
...options
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user