Implemented adress deletion (through reset)

ref #105
This commit is contained in:
2021-01-16 20:19:09 +01:00
parent 9dc9ce37d8
commit 57b9c2babc
4 changed files with 14 additions and 3 deletions

View File

@@ -58,6 +58,14 @@ export class Address {
@IsNotEmpty()
country: string;
public reset() {
this.address1 = null;
this.address2 = null;
this.city = null;
this.country = null;
this.postalcode = null;
}
/**
* Checks if this is a valid address
*/