From 13323511fb25147bdb8a466d4017ad0b700b997b Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Thu, 4 Jan 2024 11:24:27 +0300 Subject: [PATCH] Fixed #5028 - ConfirmDialog & ConfirmPopup: icon option class pt implementation defect --- components/lib/confirmdialog/ConfirmDialog.vue | 2 +- components/lib/confirmdialog/style/ConfirmDialogStyle.js | 2 +- components/lib/confirmpopup/ConfirmPopup.vue | 2 +- components/lib/confirmpopup/style/ConfirmPopupStyle.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/lib/confirmdialog/ConfirmDialog.vue b/components/lib/confirmdialog/ConfirmDialog.vue index e8cd24b8d..d0a4d54f7 100644 --- a/components/lib/confirmdialog/ConfirmDialog.vue +++ b/components/lib/confirmdialog/ConfirmDialog.vue @@ -21,7 +21,7 @@ diff --git a/components/lib/confirmdialog/style/ConfirmDialogStyle.js b/components/lib/confirmdialog/style/ConfirmDialogStyle.js index d42fc578f..c9f568ab5 100644 --- a/components/lib/confirmdialog/style/ConfirmDialogStyle.js +++ b/components/lib/confirmdialog/style/ConfirmDialogStyle.js @@ -2,7 +2,7 @@ import BaseStyle from 'primevue/base/style'; const classes = { root: 'p-confirm-dialog', - icon: ({ instance }) => ['p-confirm-dialog-icon', instance.confirmation ? instance.confirmation.icon : null], + icon: 'p-confirm-dialog-icon', message: 'p-confirm-dialog-message', rejectButton: ({ instance }) => ['p-confirm-dialog-reject', instance.confirmation && !instance.confirmation.rejectClass ? 'p-button-text' : null], acceptButton: 'p-confirm-dialog-accept' diff --git a/components/lib/confirmpopup/ConfirmPopup.vue b/components/lib/confirmpopup/ConfirmPopup.vue index 326b05882..9292d01e8 100644 --- a/components/lib/confirmpopup/ConfirmPopup.vue +++ b/components/lib/confirmpopup/ConfirmPopup.vue @@ -8,7 +8,7 @@
- + {{ confirmation.message }}
diff --git a/components/lib/confirmpopup/style/ConfirmPopupStyle.js b/components/lib/confirmpopup/style/ConfirmPopupStyle.js index 7be86f603..8f60a2ae7 100644 --- a/components/lib/confirmpopup/style/ConfirmPopupStyle.js +++ b/components/lib/confirmpopup/style/ConfirmPopupStyle.js @@ -83,7 +83,7 @@ const classes = { } ], content: 'p-confirm-popup-content', - icon: ({ instance }) => ['p-confirm-popup-icon', instance.confirmation ? instance.confirmation.icon : null], + icon: 'p-confirm-popup-icon', message: 'p-confirm-popup-message', footer: 'p-confirm-popup-footer', rejectButton: ({ instance }) => ['p-confirm-popup-reject', instance.confirmation && !instance.confirmation.rejectClass ? 'p-button-sm p-button-text' : null],