@@ -119,16 +119,16 @@ const toast = useToast();
const confirmPosition = (position) => {
confirm.require({
- group: 'positionDialog',
- message: 'Do you want to delete this record?',
- header: 'Delete Confirmation',
+ group: 'positioned',
+ message: 'Are you sure you want to proceed?',
+ header: 'Confirmation',
icon: 'pi pi-info-circle',
position: position,
accept: () => {
- toast.add({ severity: 'info', summary: 'Confirmed', detail: 'Record deleted', life: 3000 });
+ toast.add({ severity: 'info', summary: 'Confirmed', detail: 'Request submitted', life: 3000 });
},
reject: () => {
- toast.add({ severity: 'error', summary: 'Rejected', detail: 'You have rejected', life: 3000 });
+ toast.add({ severity: 'error', summary: 'Rejected', detail: 'Process incomplete', life: 3000 });
}
});
};
@@ -140,16 +140,16 @@ const confirmPosition = (position) => {
methods: {
confirmPosition(position) {
this.$confirm.require({
- group: 'positionDialog',
- message: 'Do you want to delete this record?',
- header: 'Delete Confirmation',
+ group: 'positioned',
+ message: 'Are you sure you want to proceed?',
+ header: 'Confirmation',
icon: 'pi pi-info-circle',
position: position,
accept: () => {
- this.$toast.add({ severity: 'info', summary: 'Confirmed', detail: 'Record deleted', life: 3000 });
+ this.$toast.add({ severity: 'info', summary: 'Confirmed', detail: 'Request submitted', life: 3000 });
},
reject: () => {
- this.$toast.add({ severity: 'error', summary: 'Rejected', detail: 'You have rejected', life: 3000 });
+ this.$toast.add({ severity: 'error', summary: 'Rejected', detail: 'Process incomplete', life: 3000 });
}
});
}
diff --git a/doc/confirmdialog/TemplateDoc.vue b/doc/confirmdialog/TemplateDoc.vue
index 8fe5300af..f852685c6 100644
--- a/doc/confirmdialog/TemplateDoc.vue
+++ b/doc/confirmdialog/TemplateDoc.vue
@@ -1,17 +1,17 @@
- Templating allows customizing the content where the message instance is available as the implicit variable.
+ Templating allows customizing the message content.
-
+
-
-
-
{{ slotProps.message.message }}
+
+
+
{{ slotProps.message.message }}
-
-
+
+
@@ -22,28 +22,28 @@ export default {
return {
code: {
basic: `
-
+
-
-
-
{{ slotProps.message.message }}
+
+
+
{{ slotProps.message.message }}
-
+
`,
options: `
-
+
-
-
-
{{ slotProps.message.message }}
+
+
+
{{ slotProps.message.message }}
-
-
+
+
@@ -54,11 +54,12 @@ export default {
showTemplate() {
this.$confirm.require({
group: 'templating',
- header: 'Terms and Conditions',
- message: 'Do you accept that?',
+ header: 'Confirmation',
+ message: 'Please confirm to proceed moving forward.',
icon: 'pi pi-question-circle',
acceptIcon: 'pi pi-check',
rejectIcon: 'pi pi-times',
+ acceptClass: 'p-button-outlined',
accept: () => {
this.$toast.add({ severity: 'info', summary: 'Confirmed', detail: 'You have accepted', life: 3000 });
},
@@ -73,16 +74,16 @@ export default {
`,
composition: `
-
+
-
-
-
{{ slotProps.message.message }}
+
+
+
{{ slotProps.message.message }}
-
-
+
+
@@ -97,11 +98,12 @@ const toast = useToast();
const showTemplate = () => {
confirm.require({
group: 'templating',
- header: 'Terms and Conditions',
- message: 'Do you accept that?',
+ header: 'Confirmation',
+ message: 'Please confirm to proceed moving forward.',
icon: 'pi pi-question-circle',
acceptIcon: 'pi pi-check',
rejectIcon: 'pi pi-times',
+ acceptClass: 'p-button-outlined',
accept: () => {
toast.add({ severity: 'info', summary: 'Confirmed', detail: 'You have accepted', life: 3000 });
},
@@ -119,11 +121,12 @@ const showTemplate = () => {
showTemplate() {
this.$confirm.require({
group: 'templating',
- header: 'Terms and Conditions',
- message: 'Do you accept that?',
+ header: 'Confirmation',
+ message: 'Please confirm to proceed moving forward.',
icon: 'pi pi-question-circle',
acceptIcon: 'pi pi-check',
rejectIcon: 'pi pi-times',
+ acceptClass: 'p-button-outlined',
accept: () => {
this.$toast.add({ severity: 'info', summary: 'Confirmed', detail: 'You have accepted', life: 3000 });
},
diff --git a/pages/confirmdialog/index.vue b/pages/confirmdialog/index.vue
index b7e2ed136..9c0a01844 100644
--- a/pages/confirmdialog/index.vue
+++ b/pages/confirmdialog/index.vue
@@ -14,6 +14,7 @@
import AccessibilityDoc from '@/doc/confirmdialog/AccessibilityDoc.vue';
import BasicDoc from '@/doc/confirmdialog/BasicDoc.vue';
import ConfirmationServiceDoc from '@/doc/confirmdialog/ConfirmationServiceDoc.vue';
+import HeadlessDoc from '@/doc/confirmdialog/HeadlessDoc.vue';
import ImportDoc from '@/doc/confirmdialog/ImportDoc.vue';
import PositionDoc from '@/doc/confirmdialog/PositionDoc.vue';
import TemplateDoc from '@/doc/confirmdialog/TemplateDoc.vue';
@@ -31,7 +32,7 @@ export default {
},
{
id: 'confirmation-service',
- label: 'Confirmation Service',
+ label: 'Service',
component: ConfirmationServiceDoc
},
{
@@ -49,6 +50,11 @@ export default {
label: 'Template',
component: TemplateDoc
},
+ {
+ id: 'headless',
+ label: 'Headless',
+ component: HeadlessDoc
+ },
{
id: 'accessibility',
label: 'Accessibility',