From 26c9df3424fd19404f449ca703ff7c695801624b Mon Sep 17 00:00:00 2001 From: mertsincan Date: Fri, 8 Sep 2023 09:11:15 +0100 Subject: [PATCH] Fixed #4412 - ConfirmDialog: acceptClass and rejectClass is not working on unstyled mode --- components/lib/confirmdialog/BaseConfirmDialog.vue | 4 ++-- components/lib/confirmdialog/ConfirmDialog.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/lib/confirmdialog/BaseConfirmDialog.vue b/components/lib/confirmdialog/BaseConfirmDialog.vue index ef438059c..0d82e1a8a 100644 --- a/components/lib/confirmdialog/BaseConfirmDialog.vue +++ b/components/lib/confirmdialog/BaseConfirmDialog.vue @@ -5,8 +5,8 @@ const classes = { root: 'p-confirm-dialog', icon: ({ instance }) => ['p-confirm-dialog-icon', instance.confirmation ? instance.confirmation.icon : null], message: 'p-confirm-dialog-message', - rejectButton: ({ instance }) => ['p-confirm-dialog-reject', instance.confirmation ? instance.confirmation.rejectClass || 'p-button-text' : null], - acceptButton: ({ instance }) => ['p-confirm-dialog-accept', instance.confirmation ? instance.confirmation.acceptClass : null] + rejectButton: ({ instance }) => ['p-confirm-dialog-reject', instance.confirmation && !instance.confirmation.rejectClass ? 'p-button-text' : null], + acceptButton: 'p-confirm-dialog-accept' }; export default { diff --git a/components/lib/confirmdialog/ConfirmDialog.vue b/components/lib/confirmdialog/ConfirmDialog.vue index d00ce6d02..951101edc 100644 --- a/components/lib/confirmdialog/ConfirmDialog.vue +++ b/components/lib/confirmdialog/ConfirmDialog.vue @@ -23,14 +23,14 @@