From 016385776d475f306d74380813211af6e6ffc2b6 Mon Sep 17 00:00:00 2001 From: yingfeng Date: Tue, 7 Nov 2023 20:41:29 -0500 Subject: [PATCH] AMP-3062: - fix more issue with async by setting showLoader to true before axio call --- src/components/entity/EntityList.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/entity/EntityList.vue b/src/components/entity/EntityList.vue index e389acee..1f58294b 100644 --- a/src/components/entity/EntityList.vue +++ b/src/components/entity/EntityList.vue @@ -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( @@ -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() {