Add zats setting parameter to backend
This commit is contained in:
parent
43c34958f1
commit
8130856d8f
10 changed files with 21 additions and 10 deletions
|
@ -17,7 +17,8 @@ const ownerSchema = mongoose.Schema({
|
||||||
postal: {type: String, required: true},
|
postal: {type: String, required: true},
|
||||||
phone: {type: String},
|
phone: {type: String},
|
||||||
website: {type: String},
|
website: {type: String},
|
||||||
paid: {type: Boolean, required: true, default: false}
|
paid: {type: Boolean, required: true, default: false},
|
||||||
|
zats: {type: Boolean, required: true, default: false}
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = mongoose.model('Owner', ownerSchema);
|
module.exports = mongoose.model('Owner', ownerSchema);
|
||||||
|
|
|
@ -62,7 +62,8 @@ export class BusinessComponent implements OnInit {
|
||||||
postal: '',
|
postal: '',
|
||||||
country: '',
|
country: '',
|
||||||
email: '',
|
email: '',
|
||||||
website: ''
|
website: '',
|
||||||
|
zats: false
|
||||||
}
|
}
|
||||||
public countriesUpdate: Observable<Country[]>;
|
public countriesUpdate: Observable<Country[]>;
|
||||||
public ownerUpdate: Observable<Owner>;
|
public ownerUpdate: Observable<Owner>;
|
||||||
|
@ -163,7 +164,8 @@ export class BusinessComponent implements OnInit {
|
||||||
postal: this.bizForm.get('postal')!.value,
|
postal: this.bizForm.get('postal')!.value,
|
||||||
country: this.bizForm.get('country')!.value,
|
country: this.bizForm.get('country')!.value,
|
||||||
email: this.bizForm.get('email')!.value,
|
email: this.bizForm.get('email')!.value,
|
||||||
website: this.bizForm.get('website')!.value
|
website: this.bizForm.get('website')!.value,
|
||||||
|
zats: false
|
||||||
};
|
};
|
||||||
this.userService.addOwner(this.owner);
|
this.userService.addOwner(this.owner);
|
||||||
this.stepper!.next();
|
this.stepper!.next();
|
||||||
|
|
|
@ -41,7 +41,8 @@ export class FullnodeService{
|
||||||
phone: '',
|
phone: '',
|
||||||
paid: false,
|
paid: false,
|
||||||
website: '',
|
website: '',
|
||||||
country: ''
|
country: '',
|
||||||
|
zats: false
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(private http: HttpClient, public userService: UserService){
|
constructor(private http: HttpClient, public userService: UserService){
|
||||||
|
|
|
@ -36,7 +36,8 @@ export class HeaderComponent implements OnInit, OnDestroy {
|
||||||
phone: '',
|
phone: '',
|
||||||
paid: false,
|
paid: false,
|
||||||
website: '',
|
website: '',
|
||||||
country: ''
|
country: '',
|
||||||
|
zats: false
|
||||||
};
|
};
|
||||||
private session: string | null = '';
|
private session: string | null = '';
|
||||||
public heightUpdate: Observable<number>;
|
public heightUpdate: Observable<number>;
|
||||||
|
|
|
@ -39,7 +39,8 @@ export class ItemListComponent implements OnInit{
|
||||||
phone: '',
|
phone: '',
|
||||||
paid: false,
|
paid: false,
|
||||||
website: '',
|
website: '',
|
||||||
country: ''
|
country: '',
|
||||||
|
zats: false
|
||||||
};
|
};
|
||||||
public price: number = 1;
|
public price: number = 1;
|
||||||
public ownerUpdate: Observable<Owner>;
|
public ownerUpdate: Observable<Owner>;
|
||||||
|
|
|
@ -57,7 +57,8 @@ export class LoginComponent implements OnInit, AfterViewInit {
|
||||||
phone: '',
|
phone: '',
|
||||||
paid: false,
|
paid: false,
|
||||||
website: '',
|
website: '',
|
||||||
country: ''
|
country: '',
|
||||||
|
zats: false
|
||||||
};
|
};
|
||||||
private FullnodeSub: Subscription = new Subscription();
|
private FullnodeSub: Subscription = new Subscription();
|
||||||
private UserSub: Subscription = new Subscription();
|
private UserSub: Subscription = new Subscription();
|
||||||
|
|
|
@ -41,7 +41,8 @@ export class OrderService {
|
||||||
phone: '',
|
phone: '',
|
||||||
paid: false,
|
paid: false,
|
||||||
website: '',
|
website: '',
|
||||||
country: ''
|
country: '',
|
||||||
|
zats: false
|
||||||
},
|
},
|
||||||
order: {
|
order: {
|
||||||
address: '',
|
address: '',
|
||||||
|
|
|
@ -18,4 +18,5 @@ export interface Owner {
|
||||||
paid: boolean;
|
paid: boolean;
|
||||||
website: string;
|
website: string;
|
||||||
country: string;
|
country: string;
|
||||||
|
zats: boolean;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,8 @@ export class UserService{
|
||||||
phone: '',
|
phone: '',
|
||||||
paid: false,
|
paid: false,
|
||||||
website: '',
|
website: '',
|
||||||
country: ''
|
country: '',
|
||||||
|
zats: false
|
||||||
},
|
},
|
||||||
txs : [],
|
txs : [],
|
||||||
countries: []
|
countries: []
|
||||||
|
|
|
@ -47,7 +47,8 @@ export class ViewerComponent implements OnInit {
|
||||||
phone: '',
|
phone: '',
|
||||||
paid: false,
|
paid: false,
|
||||||
website: '',
|
website: '',
|
||||||
country: ''
|
country: '',
|
||||||
|
zats: false
|
||||||
};
|
};
|
||||||
public addrUpdate: Observable<string>;
|
public addrUpdate: Observable<string>;
|
||||||
public ownerUpdate: Observable<Owner>;
|
public ownerUpdate: Observable<Owner>;
|
||||||
|
|
Loading…
Reference in a new issue