thm-p3-configurator 0.0.85 → 0.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -93,7 +93,6 @@ const BottomNavigationBar = () => {
|
|
|
93
93
|
selectedCombiset,
|
|
94
94
|
selectedBranch,
|
|
95
95
|
existingDossierType,
|
|
96
|
-
existingDossierId,
|
|
97
96
|
allowLocationChange,
|
|
98
97
|
currentDossierType
|
|
99
98
|
}, dispatch] = (0, _OrderSessionContext.useOrderSession)();
|
|
@@ -115,7 +114,7 @@ const BottomNavigationBar = () => {
|
|
|
115
114
|
}, APP_CONFIG.internal && /*#__PURE__*/_react.default.createElement("div", {
|
|
116
115
|
className: (0, _helpers__.withStyle)('col-12 mt-2 mb-1')
|
|
117
116
|
}, /*#__PURE__*/_react.default.createElement(_InternalPriceCalculationSelector.default, null)), buttons.map(_ref2 => {
|
|
118
|
-
var _history$location3;
|
|
117
|
+
var _history$location3, _history$location4;
|
|
119
118
|
let {
|
|
120
119
|
to,
|
|
121
120
|
label,
|
|
@@ -155,7 +154,7 @@ const BottomNavigationBar = () => {
|
|
|
155
154
|
state: {
|
|
156
155
|
prevPathName: history.location.pathname
|
|
157
156
|
},
|
|
158
|
-
isDisabled: (!selectedCableset || !selectedTowbar) && !selectedCombiset && type === 'next' || type === 'next' && (history === null || history === void 0 || (_history$
|
|
157
|
+
isDisabled: !(existingDossierType === _constants__.DOSSIER_TYPES.Quotation && (history === null || history === void 0 || (_history$location3 = history.location) === null || _history$location3 === void 0 ? void 0 : _history$location3.pathname) === '/configurator/montagelocatie') && ((!selectedCableset || !selectedTowbar) && !selectedCombiset && type === 'next' || type === 'next' && (history === null || history === void 0 || (_history$location4 = history.location) === null || _history$location4 === void 0 ? void 0 : _history$location4.pathname) === '/configurator/montagelocatie' && !selectedBranch)
|
|
159
158
|
})));
|
|
160
159
|
})))));
|
|
161
160
|
};
|