CSR-1813: additional logic for improved button labels if only one kind is available
This commit is contained in:
parent
85f582e724
commit
b97238d10a
1 changed files with 10 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue