add method to reset selections

This commit is contained in:
Kroell 2023-04-10 16:26:18 -04:00
parent 8f18b053f0
commit 1ccc74d34f

View file

@ -182,6 +182,13 @@ export default {
return tintSourceObject.src;
},
// Reset selections when tint changes for the same glass to ensure proper selection.
// Also checks if only a single part is present for the tint.
ResetTintAndPartSelections() {
this.selectedPartNumber = null;
this.AutoSelectIfSinglePart();
},
AutoSelectIfSinglePart() {
if (this.partsForSelectedTint?.length > 0)
{