435435 ? 'Automatically renews every week. Great for ongoing projects without long-term commitment. Cancel anytime before renewal.'
436436 : 'Pay once for 1 week, or more, of access. No automatic renewal. Perfect for testing, demos, or short-term projects.'
437437 "
438- :price =" 1.50 "
438+ :price =" 2.00 "
439439 :min =" 1"
440440 :max =" 8"
441441 :step =" 1"
450450 ? 'Best value for regular use. Renews monthly. Cancel anytime, no questions asked.'
451451 : 'Pay once for 1 month, or more, of access with no recurring charges. Ideal when you need a month of service without ongoing commitment.'
452452 "
453- :price =" 5 .00"
453+ :price =" 7 .00"
454454 :min =" 1"
455455 :max =" 12"
456456 :step =" 1"
462462 :subscription =" planDialog.subscription"
463463 :caption ="
464464 planDialog.subscription
465- ? 'Renews annually. Perfect for businesses and power users .'
466- : 'Pay once for 365 days of access . Set it and forget it.'
465+ ? 'Renews annually. Buy 12 months for the price of 10 .'
466+ : 'Buy 12 months for the price of 10 . Set it and forget it. '
467467 "
468- :price =" 50 "
468+ :price =" 70.00 "
469469 :min =" 1"
470470 :max =" 5"
471471 :step =" 1"
@@ -1101,10 +1101,10 @@ export default defineComponent({
11011101 ) {
11021102 this .qrCodeDialog .show = false
11031103 this .q .notify ({
1104- message: ` Instance ${ instance .name } ( ${ instance . id } ) extended!` ,
1104+ message: ` Instance ${ instance .id } extended!` ,
11051105 color: ' positive'
11061106 })
1107- await this .checkInstanceProvisioning (updatedInstance)
1107+ await this .checkInstanceProvisioning (updatedInstance . id )
11081108 }
11091109 if (! this .qrCodeDialog .show ) {
11101110 await this .refreshState ()
@@ -1115,11 +1115,15 @@ export default defineComponent({
11151115 }
11161116 }, 3000 )
11171117 },
1118- async checkInstanceProvisioning (instance ) {
1118+ async checkInstanceProvisioning (instanceId ) {
11191119 let timeout = 5 * 60 * 1000 // 5 minutes max wait
11201120 this .showProvisioning = true
11211121 const intervalId = setInterval (async () => {
11221122 try {
1123+ const instance = this .data .find (i => i .id === instanceId)
1124+ if (! instance) {
1125+ throw new Error (` Instance ${ instanceId} not found` )
1126+ }
11231127 const response = await fetch (
11241128 ` https://${ instance .name } /static/i18n/en.js`
11251129 )
0 commit comments