Skip to content

Commit 63b22fc

Browse files
committed
🐛 FIX: Custom plans
1 parent a9073b0 commit 63b22fc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

templates/core.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,7 @@ class="mt-2"
15581558
<v-row dense>
15591559
<v-col cols="12" md="6">
15601560
<v-select
1561-
@update:model-value="loadHostingPlan()"
1561+
@update:model-value="loadHostingPlan($event)"
15621562
v-model="dialog_modify_plan.selected_plan"
15631563
label="Plan Name"
15641564
:items="(dialog_modify_plan.hosting_plans || []).map( plan => plan.name )"
@@ -14678,7 +14678,7 @@ class="mt-5"
1467814678
removeCharge( remove_item ) {
1467914679
this.dialog_modify_plan.plan.charges = this.dialog_modify_plan.plan.charges.filter( (item, index) => index != remove_item );
1468014680
},
14681-
loadHostingPlan() {
14681+
loadHostingPlan( selected_plan ) {
1468214682
current_auto_pay = this.dialog_modify_plan.plan.auto_pay
1468314683
current_auto_switch = this.dialog_modify_plan.plan.auto_switch
1468414684
billing_user_id = this.dialog_modify_plan.plan.billing_user_id
@@ -14693,7 +14693,10 @@ class="mt-5"
1469314693
if ( typeof this.dialog_modify_plan.plan.credits != 'undefined' ) {
1469414694
current_credits = JSON.parse(JSON.stringify( this.dialog_modify_plan.plan.credits ) )
1469514695
}
14696-
selected_plan = this.dialog_modify_plan.selected_plan
14696+
if ( !selected_plan ) {
14697+
selected_plan = this.dialog_modify_plan.selected_plan
14698+
}
14699+
1469714700
hosting_plan = this.dialog_modify_plan.hosting_plans.filter( plan => plan.name == selected_plan )[0]
1469814701
if ( typeof hosting_plan == "undefined" ) {
1469914702
return

0 commit comments

Comments
 (0)