CSR-715 Replace hardcoded Repair/Replace
This commit is contained in:
parent
75b1640f70
commit
ba1764b9e6
1 changed files with 2 additions and 2 deletions
|
|
@ -140,12 +140,12 @@ export default ({
|
|||
isRepairOptionSelected(){
|
||||
if (!this.selectedWindshieldDamageTypeValue) return false;
|
||||
|
||||
return this.selectedWindshieldDamageTypeValue.toUpperCase() === "REPAIR" && this.isWindshieldDamageLocation;
|
||||
return this.selectedWindshieldDamageTypeValue.toUpperCase() === damageLocationsSelected.REPAIR.toUpperCase() && this.isWindshieldDamageLocation;
|
||||
},
|
||||
isReplaceOptionSelected(){
|
||||
if (!this.selectedWindshieldDamageTypeValue) return false;
|
||||
|
||||
return this.selectedWindshieldDamageTypeValue.toUpperCase() === "REPLACE" && this.isWindshieldDamageLocation;
|
||||
return this.selectedWindshieldDamageTypeValue.toUpperCase() === damageLocationsSelected.REPLACE.toUpperCase() && this.isWindshieldDamageLocation;
|
||||
},
|
||||
isWindshieldReplaceAvailable() {
|
||||
return !(Array.isArray(this.windshieldAvailableReplacementOptions) && this.windshieldAvailableReplacementOptions.length < 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue