diff --git a/components/lib/confirmdialog/ConfirmDialog.vue b/components/lib/confirmdialog/ConfirmDialog.vue index 5347f9a1c..60e82c2bb 100644 --- a/components/lib/confirmdialog/ConfirmDialog.vue +++ b/components/lib/confirmdialog/ConfirmDialog.vue @@ -15,6 +15,7 @@ :unstyled="unstyled" > @@ -100,7 +101,8 @@ const confirm2 = () => { message: 'Do you want to delete this record?', header: 'Delete Confirmation', icon: 'pi pi-info-circle', - acceptClass: 'p-button-danger', + rejectClass: 'p-button-text p-button-text', + acceptClass: 'p-button-danger p-button-text', accept: () => { toast.add({ severity: 'info', summary: 'Confirmed', detail: 'Record deleted', life: 3000 }); }, @@ -133,7 +135,8 @@ const confirm2 = () => { message: 'Do you want to delete this record?', header: 'Delete Confirmation', icon: 'pi pi-info-circle', - acceptClass: 'p-button-danger', + rejectClass: 'p-button-text p-button-text', + acceptClass: 'p-button-danger p-button-text', accept: () => { this.$toast.add({ severity: 'info', summary: 'Confirmed', detail: 'Record deleted', life: 3000 }); }, diff --git a/doc/confirmdialog/ConfirmationServiceDoc.vue b/doc/confirmdialog/ConfirmationServiceDoc.vue index f5d29058f..e5a8935e2 100644 --- a/doc/confirmdialog/ConfirmationServiceDoc.vue +++ b/doc/confirmdialog/ConfirmationServiceDoc.vue @@ -4,7 +4,7 @@
-

$confirm is available as a property in the application instance for Options API. The service can be injected with the useConfirm function for Composition API.

+

The service is available with the useConfirm function for Composition API or using the $confirm property of the application for Options API.

diff --git a/doc/confirmdialog/HeadlessDoc.vue b/doc/confirmdialog/HeadlessDoc.vue new file mode 100644 index 000000000..6cb7d74af --- /dev/null +++ b/doc/confirmdialog/HeadlessDoc.vue @@ -0,0 +1,156 @@ + + + diff --git a/doc/confirmdialog/PositionDoc.vue b/doc/confirmdialog/PositionDoc.vue index adef71079..3688c8d54 100644 --- a/doc/confirmdialog/PositionDoc.vue +++ b/doc/confirmdialog/PositionDoc.vue @@ -1,14 +1,14 @@