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},
|
||||
phone: {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);
|
||||
|
|
|
@ -62,7 +62,8 @@ export class BusinessComponent implements OnInit {
|
|||
postal: '',
|
||||
country: '',
|
||||
email: '',
|
||||
website: ''
|
||||
website: '',
|
||||
zats: false
|
||||
}
|
||||
public countriesUpdate: Observable<Country[]>;
|
||||
public ownerUpdate: Observable<Owner>;
|
||||
|
@ -163,7 +164,8 @@ export class BusinessComponent implements OnInit {
|
|||
postal: this.bizForm.get('postal')!.value,
|
||||
country: this.bizForm.get('country')!.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.stepper!.next();
|
||||
|
|
|
@ -41,7 +41,8 @@ export class FullnodeService{
|
|||
phone: '',
|
||||
paid: false,
|
||||
website: '',
|
||||
country: ''
|
||||
country: '',
|
||||
zats: false
|
||||
};
|
||||
|
||||
constructor(private http: HttpClient, public userService: UserService){
|
||||
|
|
|
@ -36,7 +36,8 @@ export class HeaderComponent implements OnInit, OnDestroy {
|
|||
phone: '',
|
||||
paid: false,
|
||||
website: '',
|
||||
country: ''
|
||||
country: '',
|
||||
zats: false
|
||||
};
|
||||
private session: string | null = '';
|
||||
public heightUpdate: Observable<number>;
|
||||
|
|
|
@ -39,7 +39,8 @@ export class ItemListComponent implements OnInit{
|
|||
phone: '',
|
||||
paid: false,
|
||||
website: '',
|
||||
country: ''
|
||||
country: '',
|
||||
zats: false
|
||||
};
|
||||
public price: number = 1;
|
||||
public ownerUpdate: Observable<Owner>;
|
||||
|
|
|
@ -57,7 +57,8 @@ export class LoginComponent implements OnInit, AfterViewInit {
|
|||
phone: '',
|
||||
paid: false,
|
||||
website: '',
|
||||
country: ''
|
||||
country: '',
|
||||
zats: false
|
||||
};
|
||||
private FullnodeSub: Subscription = new Subscription();
|
||||
private UserSub: Subscription = new Subscription();
|
||||
|
|
|
@ -41,7 +41,8 @@ export class OrderService {
|
|||
phone: '',
|
||||
paid: false,
|
||||
website: '',
|
||||
country: ''
|
||||
country: '',
|
||||
zats: false
|
||||
},
|
||||
order: {
|
||||
address: '',
|
||||
|
|
|
@ -18,4 +18,5 @@ export interface Owner {
|
|||
paid: boolean;
|
||||
website: string;
|
||||
country: string;
|
||||
zats: boolean;
|
||||
}
|
||||
|
|
|
@ -37,7 +37,8 @@ export class UserService{
|
|||
phone: '',
|
||||
paid: false,
|
||||
website: '',
|
||||
country: ''
|
||||
country: '',
|
||||
zats: false
|
||||
},
|
||||
txs : [],
|
||||
countries: []
|
||||
|
|
|
@ -47,7 +47,8 @@ export class ViewerComponent implements OnInit {
|
|||
phone: '',
|
||||
paid: false,
|
||||
website: '',
|
||||
country: ''
|
||||
country: '',
|
||||
zats: false
|
||||
};
|
||||
public addrUpdate: Observable<string>;
|
||||
public ownerUpdate: Observable<Owner>;
|
||||
|
|
Loading…
Reference in a new issue