File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 330330 </q-dialog >
331331 <q-dialog v-model =" showProvisioning" backdrop-filter =" blur(4px)" persistent >
332332 <q-card style =" width : 95% ; max-width : 1200px " class =" q-mx-auto" >
333- <q-card-section class =" q-py-lg bg-secondary text-white column" >
334- <div class =" text-h6" >Your VPS is being provisioned...</div >
333+ <q-card-section class =" row items-center q-py-lg bg-secondary text-white" >
335334 <div >
336- Please wait while we set up your server. This may take a few minutes.
335+ <div
336+ class =" text-h6"
337+ v-text ="
338+ isProvisioning
339+ ? 'Your VPS is being provisioned...'
340+ : 'Provisioned'
341+ "
342+ ></div >
343+ <div
344+ v-text ="
345+ isProvisioning
346+ ? 'Please wait while we set up your server. This may take a few minutes.'
347+ : 'Your VPS is ready!'
348+ "
349+ ></div >
337350 </div >
351+ <q-space ></q-space >
352+ <q-btn icon =" close" flat round dense v-close-popup ></q-btn >
338353 </q-card-section >
339- <q-linear-progress indeterminate ></q-linear-progress >
354+ <q-linear-progress
355+ v-if =" isProvisioning"
356+ indeterminate
357+ ></q-linear-progress >
340358 <q-carousel
341359 v-model =" slide"
342360 arrows
363381 </div >
364382 </q-carousel-slide >
365383 </q-carousel >
366-
367- <q-card-actions align =" right" >
368- <q-btn flat label =" Close" color =" primary" v-close-popup ></q-btn >
369- </q-card-actions >
370384 </q-card >
371385 </q-dialog >
372386 <q-dialog
@@ -653,6 +667,7 @@ export default defineComponent({
653667 },
654668 inProgress: false ,
655669 showProvisioning: false ,
670+ isProvisioning: true ,
656671 columns: [
657672 {
658673 name: ' action' ,
@@ -1128,7 +1143,11 @@ export default defineComponent({
11281143 ` https://${ instance .name } /static/i18n/en.js`
11291144 )
11301145 if (response .status === 200 ) {
1131- this .showProvisioning = false
1146+ this .isProvisioning = false
1147+ setTimeout (() => {
1148+ this .showProvisioning = false
1149+ this .isProvisioning = true
1150+ }, 20000 )
11321151 this .q .notify ({
11331152 message: ` Instance ${ instance .name } (${ instance .id } ) is ready!` ,
11341153 color: ' positive'
You can’t perform that action at this time.
0 commit comments