add method to reset selections
This commit is contained in:
parent
8f18b053f0
commit
1ccc74d34f
1 changed files with 7 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue