Commit 08e85680 authored by Vitaly Slobodin's avatar Vitaly Slobodin

Fix OrderSummary component

parent cb49fb4d
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
}, },
computed: { computed: {
selectedPlan() { selectedPlan() {
return this.plans.find((plan) => plan.code === this.selectedPlanId); return this.plans.find((plan) => plan.id === this.selectedPlanId);
}, },
selectedPlanPrice() { selectedPlanPrice() {
return this.selectedPlan.pricePerYear; return this.selectedPlan.pricePerYear;
...@@ -92,6 +92,13 @@ export default { ...@@ -92,6 +92,13 @@ export default {
titleWithName() { titleWithName() {
return sprintf(this.$options.i18n.title, { name: this.name }); return sprintf(this.$options.i18n.title, { name: this.name });
}, },
isVisible() {
return (
!this.$apollo.loading &&
(!this.isGroupSelected || this.isSelectedGroupPresent) &&
this.selectedPlan
);
},
}, },
methods: { methods: {
toggleCollapse() { toggleCollapse() {
...@@ -106,7 +113,7 @@ export default { ...@@ -106,7 +113,7 @@ export default {
</script> </script>
<template> <template>
<div <div
v-if="!$apollo.loading && (!isGroupSelected || isSelectedGroupPresent) && selectedPlan" v-if="isVisible"
class="order-summary gl-display-flex gl-flex-direction-column gl-flex-grow-1 gl-mt-2 mt-lg-5" class="order-summary gl-display-flex gl-flex-direction-column gl-flex-grow-1 gl-mt-2 mt-lg-5"
> >
<div class="d-lg-none"> <div class="d-lg-none">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment