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,
|
||||
actions: [
|
||||
{ label: options.successLabel ?? 'Yes', click: onSuccess },
|
||||
...(onFailure ? [{ label: options.failureLabel ?? 'No', click: onFailure }] : [])
|
||||
{ label: options.failureLabel ?? 'No', click: onFailure }
|
||||
],
|
||||
...options
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user