From 9c3fa60551eac1a35877dc159ebeb31f858de0ca Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Thu, 7 Jul 2022 19:51:32 +1000
Subject: Adapt loading-modal to show other messages

Was intending to add 'Arranging tiles' and 'Rendering tiles' messages,
but they wouldn't trigger during 'uncontrived' test cases, including
with throttled CPU
---
 src/components/LoadingModal.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/components/LoadingModal.vue')

diff --git a/src/components/LoadingModal.vue b/src/components/LoadingModal.vue
index a338670..506abf4 100644
--- a/src/components/LoadingModal.vue
+++ b/src/components/LoadingModal.vue
@@ -3,7 +3,7 @@
 	<div class="absolute left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2
 		flex items-center py-3 px-3 gap-2" :style="styles">
 		<loader-icon class="w-12 h-12 animate-[spin_6s_linear_infinite]"/>
-		<div class="whitespace-nowrap">Querying server ...</div>
+		<div class="whitespace-nowrap">{{msg}}</div>
 	</div>
 </div>
 </template>
@@ -15,6 +15,7 @@ import {UiOptions} from '../lib';
 
 export default defineComponent({
 	props: {
+		msg: {type: String, required: true},
 		uiOpts: {type: Object as PropType<UiOptions>, required: true},
 	},
 	computed: {
-- 
cgit v1.2.3

