From cc7ee0af4cb8dd07d2b1228cf14081c6ff164d91 Mon Sep 17 00:00:00 2001 From: 639852 Date: Fri, 30 Jun 2023 15:56:10 +0400 Subject: [PATCH] - Fixed minor bugs --- .../appMain/modules/ione/createInstance.vue | 2 +- .../modules/ovh dedicated/createInstance.vue | 8 +++++-- src/components/appMain/newPaaS.vue | 21 ++++++++++++------- .../appMain/ovhCreationTemplate.vue | 2 +- src/components/services/iaas/index.vue | 1 + 5 files changed, 23 insertions(+), 11 deletions(-) diff --git a/src/components/appMain/modules/ione/createInstance.vue b/src/components/appMain/modules/ione/createInstance.vue index dd19238d..cdeed080 100644 --- a/src/components/appMain/modules/ione/createInstance.vue +++ b/src/components/appMain/modules/ione/createInstance.vue @@ -167,7 +167,7 @@ - + { diff --git a/src/components/appMain/newPaaS.vue b/src/components/appMain/newPaaS.vue index a149d9df..df816d52 100644 --- a/src/components/appMain/newPaaS.vue +++ b/src/components/appMain/newPaaS.vue @@ -2,7 +2,15 @@
+ +
- -
@@ -765,6 +767,7 @@ export default { const isTypesEqual = type === location.type; const isPlanInclude = billing_plans?.includes(uuid); + if (billing_plans.length < 1) return true; if (location.type === '') return true; return isTypesEqual && isPlanInclude; }); @@ -1036,7 +1039,7 @@ export default { this.tarification = this.dataLocalStorage.tarification ?? ''; this.vmName = this.dataLocalStorage.titleVM ?? ''; this.locationId = this.dataLocalStorage.locationId ?? ''; - this.activeKey = this.dataLocalStorage.activeKey ?? 'location'; + this.activeKey = null; if (this.dataLocalStorage.config) { this.options.os.id = this.dataLocalStorage.config.template_id; @@ -1648,6 +1651,10 @@ export default { } else if (this.dataLocalStorage.locationId) { this.tarification = this.periods[0]?.value ?? ''; } + + if (this.dataLocalStorage) { + this.activeKey = this.dataLocalStorage.activeKey ?? 'location'; + } }); const type = this.options.drive ? "SSD" : "HDD"; diff --git a/src/components/appMain/ovhCreationTemplate.vue b/src/components/appMain/ovhCreationTemplate.vue index 429870f0..8ce2c3f7 100644 --- a/src/components/appMain/ovhCreationTemplate.vue +++ b/src/components/appMain/ovhCreationTemplate.vue @@ -111,7 +111,7 @@
- + currency === this.currency.id) } product.price.currency = this.currency.code