Skip to content

Commit

Permalink
fix: sidePanel & visas table for open visa on mailing (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
LrxGaelle authored Oct 9, 2024
1 parent a64f819 commit 30fae9e
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/components/specific/files/files-manager/FilesManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -526,26 +526,17 @@ export default {
};
const visasLoading = ref(false);
const openVisaManager = async (file) => {
const openVisaManager = file => {
onTabChange(filesTabs[2]);
openSidePanel();
try {
visasLoading.value = true;
await loadVisaData(file);
fileToManage.value = file;
currentVisa.value = file;
currentVisa.value = file
setManagerVisibility("visa", true);
} finally {
visasLoading.value = false;
}
};
const loadVisaData = async (file) => {
return new Promise((resolve) => {
setTimeout(() => {
resolve();
}, 500);
});
};
const closeVisaManager = () => {
closeSidePanel();
Expand Down Expand Up @@ -602,7 +593,7 @@ export default {
(v) => v.id === parseInt(route.query.visaId)
);
if (currentVisa.value) {
openVisaManager();
openVisaManager(currentVisa.value);
}
}
};
Expand Down

0 comments on commit 30fae9e

Please sign in to comment.