Skip to content

Commit

Permalink
Merge pull request #1786 from fdm-monster/fix/yaml-dialog-reset-after…
Browse files Browse the repository at this point in the history
…-reopen

YAML dialog wouldn't reset error after re-opening
  • Loading branch information
davidzwa authored Dec 13, 2024
2 parents 9e87884 + c506f30 commit 40a7179
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 40a7179

Please sign in to comment.