diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-07-07 19:51:32 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-07-07 19:51:32 +1000 |
| commit | 9c3fa60551eac1a35877dc159ebeb31f858de0ca (patch) | |
| tree | 3c69ac1357518b7fb1b7136131d2e50856b5d106 /src/components | |
| parent | f335593f9bfbd1eb3db939b23af799709d5d8104 (diff) | |
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
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/LoadingModal.vue | 3 |
1 files changed, 2 insertions, 1 deletions
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: { |
