diff --git a/components/viewer/ProjectMenu.vue b/components/viewer/ProjectMenu.vue index a2edc68..b91d380 100644 --- a/components/viewer/ProjectMenu.vue +++ b/components/viewer/ProjectMenu.vue @@ -78,6 +78,11 @@ const loadRemoteFile = async ({ target }: MouseEvent) => { }); } + progress.value = `Loading ${target.text}...`; + // A hack, but otherwise the progress value never updates before loadProject is called + const pause = new Promise((resolve) => setTimeout(resolve, 100)); + await pause; + const bodyBytes = new Uint8Array(received); let pos = 0; for (const chunk of chunks) {