CSR-1813: additional logic for improved button labels if only one kind is available

This commit is contained in:
Adam Caouette 2023-11-21 17:12:49 -05:00
parent 85f582e724
commit b97238d10a

View file

@ -319,6 +319,11 @@ export default {
"{custom:WIPERTYPE}",
wipersOfferedStrings.FRONT.toLowerCase() + " "
);
} else {
wipersModalData.Text = wipersModalData.Text?.replaceAll(
"{custom:WIPERTYPE}",
""
);
}
buttons.push(wipersModalData);
}
@ -331,6 +336,11 @@ export default {
"{custom:WIPERTYPE}",
wipersOfferedStrings.REAR.toLowerCase() + " "
);
} else {
wipersModalData.Text = wipersModalData.Text?.replaceAll(
"{custom:WIPERTYPE}",
""
);
}
buttons.push(wipersModalData);
}