From c823d392dd1aa79f7a3f14b1905e18e703421b85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane?= Date: Mon, 25 Sep 2023 18:32:35 +0000 Subject: [PATCH] Fix #4506 --- components/lib/confirmpopup/BaseConfirmPopup.vue | 4 ++-- components/lib/confirmpopup/ConfirmPopup.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/lib/confirmpopup/BaseConfirmPopup.vue b/components/lib/confirmpopup/BaseConfirmPopup.vue index fd8f9e477c..874571de4d 100644 --- a/components/lib/confirmpopup/BaseConfirmPopup.vue +++ b/components/lib/confirmpopup/BaseConfirmPopup.vue @@ -86,8 +86,8 @@ const classes = { icon: ({ instance }) => ['p-confirm-popup-icon', instance.confirmation ? instance.confirmation.icon : null], message: 'p-confirm-popup-message', footer: 'p-confirm-popup-footer', - 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' }; const { load: loadStyle } = useStyle(styles, { name: 'confirmpopup', manual: true }); diff --git a/components/lib/confirmpopup/ConfirmPopup.vue b/components/lib/confirmpopup/ConfirmPopup.vue index a0143b1010..3770edce02 100644 --- a/components/lib/confirmpopup/ConfirmPopup.vue +++ b/components/lib/confirmpopup/ConfirmPopup.vue @@ -15,14 +15,14 @@
- + - +