BugFixes: #8
This commit is contained in:
@@ -160,13 +160,13 @@ export class EditBusinessListingComponent {
|
||||
}
|
||||
target[keys[keys.length - 1]] = value;
|
||||
}
|
||||
onCheckboxChange(checkbox: string) {
|
||||
onCheckboxChange(checkbox: string, value: boolean) {
|
||||
// Deaktivieren Sie alle Checkboxes
|
||||
this.listing.realEstateIncluded = false;
|
||||
this.listing.leasedLocation = false;
|
||||
this.listing.franchiseResale = false;
|
||||
|
||||
// Aktivieren Sie nur die aktuell ausgewählte Checkbox
|
||||
this.listing[checkbox] = true;
|
||||
this.listing[checkbox] = value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user