CASH-2098
CASH-2098 log msg is not MSR specific all of the time. cleanup
This commit is contained in:
parent
bef358aff7
commit
ab7a541dfa
1 changed files with 8 additions and 8 deletions
|
|
@ -1870,40 +1870,40 @@ export default {
|
|||
const shouldExposeMobileFirstAppointment = () => {
|
||||
const mobileFirstDaysCheck = (firstMobileAMDate && numberOfDaysToFirstMobileAMDate <= noMobileAvailableDays) ||
|
||||
(firstMobilePMDate && numberOfDaysToFirstMobilePMDate <= noMobileAvailableDays);
|
||||
debugLog("MSR::: Mobile First Days Check:", mobileFirstDaysCheck);
|
||||
debugLog("::: Mobile First Days Check:", mobileFirstDaysCheck);
|
||||
|
||||
if (mobileFirstPopupRepairSetting === "false" &&
|
||||
mobileFirstPopupReplaceWithoutMsrSetting === "false" &&
|
||||
mobileFirstPopupReplaceWithMsrSetting === "false") {
|
||||
debugLog("MSR::: Mobile First Damage Popup settings are all false, using default check.");
|
||||
debugLog("::: Mobile First Damage Popup settings are all false, using default check.");
|
||||
return mobileFirstDaysCheck;
|
||||
}
|
||||
|
||||
if (isRepair) {
|
||||
if (mobileFirstPopupRepairSetting === "true") {
|
||||
debugLog("MSR::: Mobile First Popup Repair setting is true, showing mobile first appointment for repair.");
|
||||
debugLog("::: Mobile First Popup Repair setting is true, showing mobile first appointment for repair.");
|
||||
return mobileFirstDaysCheck;
|
||||
} else {
|
||||
debugLog("MSR::: Mobile First Popup Repair setting is false, not showing mobile first appointment for repair.");
|
||||
debugLog("::: Mobile First Popup Repair setting is false, not showing mobile first appointment for repair.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (this.isMobileStaticRecalibrationApplicable) {
|
||||
if (mobileFirstPopupReplaceWithMsrSetting === "true") {
|
||||
debugLog("MSR::: Mobile First Popup Replace with MSR setting is true, showing mobile first appointment for replace with MSR.");
|
||||
debugLog("::: Mobile First Popup Replace with MSR setting is true, showing mobile first appointment for replace with MSR.");
|
||||
return mobileFirstDaysCheck;
|
||||
} else {
|
||||
debugLog("MSR::: Mobile First Popup Replace with MSR setting is false, not showing mobile first appointment for replace with MSR.");
|
||||
debugLog("::: Mobile First Popup Replace with MSR setting is false, not showing mobile first appointment for replace with MSR.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (mobileFirstPopupReplaceWithoutMsrSetting === "true") {
|
||||
debugLog("MSR::: Mobile First Popup Replace without MSR setting is true, showing mobile first appointment for replace without MSR.");
|
||||
debugLog("::: Mobile First Popup Replace without MSR setting is true, showing mobile first appointment for replace without MSR.");
|
||||
return mobileFirstDaysCheck;
|
||||
} else {
|
||||
debugLog("MSR::: Mobile First Popup Replace without MSR setting is false, not showing mobile first appointment for replace without MSR.");
|
||||
debugLog("::: Mobile First Popup Replace without MSR setting is false, not showing mobile first appointment for replace without MSR.");
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue