diff --git a/RELEASE_NOTES.MD b/RELEASE_NOTES.MD index 9b242cb7..d0e40632 100644 --- a/RELEASE_NOTES.MD +++ b/RELEASE_NOTES.MD @@ -1,5 +1,9 @@ # Release notes +Fixes + +- YAML dialog wouldn't reset error after re-opening + ## Client 07/12/2024 1.8.3 Fixes diff --git a/src/components/Generic/Dialogs/YamlImportExportDialog.vue b/src/components/Generic/Dialogs/YamlImportExportDialog.vue index 7a0ce23f..7415c73c 100644 --- a/src/components/Generic/Dialogs/YamlImportExportDialog.vue +++ b/src/components/Generic/Dialogs/YamlImportExportDialog.vue @@ -113,7 +113,12 @@ const onBeforeDialogOpened = async () => { exportGroups.value = featureStore.hasFeature("printerGroupsApi"); }; -const onDialogOpened = async () => {}; +const onDialogOpened = async () => { + importFile.value = undefined; + errorMessage.value = ""; + errorDetailedMessage.value = ""; + notes.value = ""; +}; const downloadExportYamlFile = async () => { if (exportFloorGrid.value) { @@ -158,6 +163,9 @@ const uploadAndImportYamlFile = async () => { const closeDialog = () => { importFile.value = undefined; + errorMessage.value = ""; + errorDetailedMessage.value = ""; + notes.value = ""; dialog.closeDialog(); };