Skip to content

Commit f55de35

Browse files
committed
fix: update adminforth dependency to version 2.13.0-next.34 and adjust dialog close behavior based on popup mode
1 parent 3dc62b9 commit f55de35

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

custom/VisionAction.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
: popupMode === 'settings' ? 'lg:w-[1000px] !lg:max-w-[1000px]'
1414
: 'lg:w-[500px] !lg:max-w-[500px]'"
1515
:beforeCloseFunction="closeDialog"
16-
:closable="false"
17-
:askForCloseConfirmation="true"
16+
:closable="popupMode === 'generation' ? false : true"
17+
:askForCloseConfirmation="popupMode === 'generation' ? true : false"
1818
closeConfirmationText="Are you sure you want to close without saving?"
1919
:buttons="popupMode === 'generation' ? [
2020
{
@@ -30,7 +30,7 @@
3030
options: {
3131
class: 'bg-white hover:!bg-gray-100 !text-gray-900 hover:!text-gray-800 dark:!bg-gray-800 dark:!text-gray-100 dark:hover:!bg-gray-700 !border-gray-200'
3232
},
33-
onclick: (dialog) => dialog.hide()
33+
onclick: (dialog) => confirmDialog.tryToHideModal()
3434
},
3535
] : popupMode === 'settings' ? [
3636
{

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"dependencies": {
2929
"@types/handlebars": "^4.0.40",
30-
"adminforth": "^2.13.0-next.33",
30+
"adminforth": "^2.13.0-next.34",
3131
"handlebars": "^4.7.8"
3232
},
3333
"release": {

0 commit comments

Comments
 (0)