Skip to content

Commit

Permalink
YAML dialog wouldn't reset error after re-opening
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzwa committed Dec 13, 2024
1 parent 9e87884 commit c506f30
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions RELEASE_NOTES.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release notes

Fixes

- YAML dialog wouldn't reset error after re-opening

## Client 07/12/2024 1.8.3

Fixes
Expand Down
10 changes: 9 additions & 1 deletion src/components/Generic/Dialogs/YamlImportExportDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -158,6 +163,9 @@ const uploadAndImportYamlFile = async () => {
const closeDialog = () => {
importFile.value = undefined;
errorMessage.value = "";
errorDetailedMessage.value = "";
notes.value = "";
dialog.closeDialog();
};
</script>

0 comments on commit c506f30

Please sign in to comment.