Always set vm.isInsuranceSelected
Some cases were not setting it if external parameter state was marked 0 or 1
This commit is contained in:
parent
3fbce61798
commit
2391748d60
1 changed files with 9 additions and 8 deletions
|
|
@ -583,6 +583,8 @@ export default {
|
|||
debugLog("--- quote.vue thresholds end ---");
|
||||
}
|
||||
|
||||
let setInsuranceSelected = true;
|
||||
|
||||
if (isExternalParameter === externalParameterStatus.NOT_SET) {
|
||||
// prettier-ignore
|
||||
{
|
||||
|
|
@ -590,12 +592,6 @@ export default {
|
|||
}
|
||||
// there are no active or inactive external parameters; use internal threshold
|
||||
if (internalThreshold) thresholdToUse = internalThreshold;
|
||||
|
||||
vm.isInsuranceSelected = getIsInsuranceSelectedValue(
|
||||
vm.availableLineItems,
|
||||
thresholdToUse
|
||||
);
|
||||
baseMixin.methods.ResetExternalParamsAndHideModal();
|
||||
} else {
|
||||
// user came from an external source, however, the externalParms may have been reset on service-zip, property-questions, etc...
|
||||
if (getBoolFromString(store.getters.externalParameterQuote?.isInsurance)) {
|
||||
|
|
@ -614,7 +610,9 @@ export default {
|
|||
await vm.skip(insuranceSelection, servicePackage);
|
||||
}
|
||||
|
||||
baseMixin.methods.ResetExternalParamsAndHideModal();
|
||||
if (vm.isInsuranceSelected != null) {
|
||||
setInsuranceSelected = false;
|
||||
}
|
||||
} else {
|
||||
if (externalThreshold) thresholdToUse = externalThreshold;
|
||||
|
||||
|
|
@ -622,13 +620,16 @@ export default {
|
|||
{
|
||||
debugLog("quote.vue tab select NOT EXTERNAL");
|
||||
}
|
||||
}
|
||||
|
||||
//Set isInsuranceSelected if
|
||||
if (setInsuranceSelected) {
|
||||
vm.isInsuranceSelected = getIsInsuranceSelectedValue(
|
||||
vm.availableLineItems,
|
||||
thresholdToUse
|
||||
);
|
||||
baseMixin.methods.ResetExternalParamsAndHideModal();
|
||||
}
|
||||
baseMixin.methods.ResetExternalParamsAndHideModal();
|
||||
}
|
||||
|
||||
if (vm.skipToInsurance && !vm.showSaveProgressPopup) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue