CSR-2083
disabled Continue button by default
This commit is contained in:
parent
f3e18fa756
commit
7d8c32b27d
2 changed files with 27 additions and 6 deletions
|
|
@ -112,9 +112,14 @@ export default {
|
||||||
console.error("No insurance companies found");
|
console.error("No insurance companies found");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const parentAccountNumber = this.getParentAccountNumber(parentAccountName);
|
if (parentAccountName) {
|
||||||
this.selectedAccountNumber = parentAccountNumber;
|
const parentAccountNumber = this.getParentAccountNumber(parentAccountName);
|
||||||
this.selectedAccountName = this.getParentAccountName(parentAccountNumber);
|
this.selectedAccountNumber = parentAccountNumber;
|
||||||
|
this.selectedAccountName = this.getParentAccountName(parentAccountNumber);
|
||||||
|
} else {
|
||||||
|
this.selectedAccountNumber = "";
|
||||||
|
this.selectedAccountName = "";
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -145,6 +150,9 @@ export default {
|
||||||
select: function (event, ui) {
|
select: function (event, ui) {
|
||||||
select(ui.item.value);
|
select(ui.item.value);
|
||||||
},
|
},
|
||||||
|
change: function (event, ui) {
|
||||||
|
select(ui?.item?.value);
|
||||||
|
},
|
||||||
});
|
});
|
||||||
}, 0);
|
}, 0);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
<navbar
|
<navbar
|
||||||
cmsWidgetName="FunnelFooterWidget"
|
cmsWidgetName="FunnelFooterWidget"
|
||||||
ref="navbar"
|
ref="navbar"
|
||||||
:isForwardActionDisabled="!meta.valid"
|
:isForwardActionDisabled="!meta.valid || !isParentAccountNumber"
|
||||||
@back-clicked="backButtonAction"
|
@back-clicked="backButtonAction"
|
||||||
@ForwardClicked="forwardButtonAction" />
|
@ForwardClicked="forwardButtonAction" />
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -44,7 +44,7 @@ import { storeActions } from "@/constants/store-actions";
|
||||||
import { Form, defineRule } from "vee-validate";
|
import { Form, defineRule } from "vee-validate";
|
||||||
import baseMixin from "@/mixins/base-mixin.js";
|
import baseMixin from "@/mixins/base-mixin.js";
|
||||||
import { navigateToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper";
|
import { navigateToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper";
|
||||||
|
import { applicationConfig } from "@/constants/application-config";
|
||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -84,9 +84,22 @@ export default {
|
||||||
originalList: [],
|
originalList: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
isParentAccountNumber() {
|
||||||
|
return !!this.parentAccountNumber;
|
||||||
|
},
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
isCashParentAccountNumber() {
|
||||||
|
return (
|
||||||
|
applicationConfig.CASH_PARENT_ACCOUNT_NUMBER.toString() ===
|
||||||
|
store.getters.order?.payment?.parentAccountNumber.toString()
|
||||||
|
);
|
||||||
|
},
|
||||||
parentAccountNumberFromStore() {
|
parentAccountNumberFromStore() {
|
||||||
const accountNumber = store.getters.order?.payment?.parentAccountNumber.toString();
|
const accountNumber = !this.isCashParentAccountNumber()
|
||||||
|
? store.getters.order?.payment?.parentAccountNumber.toString()
|
||||||
|
: "";
|
||||||
return accountNumber;
|
return accountNumber;
|
||||||
},
|
},
|
||||||
arePagePrerequisitesValid() {
|
arePagePrerequisitesValid() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue