Skip to content

Commit

Permalink
AMP-3062:
Browse files Browse the repository at this point in the history
- fix more issue with async by setting showLoader to true before axio
call
  • Loading branch information
yingfeng-iu committed Nov 8, 2023
1 parent 1cf0801 commit 0163857
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/entity/EntityList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,8 @@ export default {
self.showEdit = false;
}
} else if (self.baseUrl === "file") {
console.log("showLoader = " + self.showLoader);
console.log("start loading file: showLoader = " + self.showLoader);
self.showLoader = true;
self.entity = self.selectedFile;
if (self.accessControl._primaryfile_media._read) {
let mediaSourceUrl = await self.workflowResultService.getMediaSymlink(
Expand All @@ -1376,6 +1377,7 @@ export default {
self.entity["mediaType"] = mediaSourceType.mimeType.substring(0, 5);
console.log("mediaType = " + self.entity.mediaType);
self.showLoader = false;
console.log("end loading file: showLoader = " + self.showLoader);
}
},
async getUnitCollections() {
Expand Down

0 comments on commit 0163857

Please sign in to comment.