Add field to Owner model
This commit is contained in:
parent
3a8791cb8b
commit
d840b4c03c
13 changed files with 28 additions and 26 deletions
|
@ -69,7 +69,8 @@ export class BusinessComponent implements OnInit {
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString(),
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
payconf: false,
|
payconf: false,
|
||||||
viewkey: ''
|
viewkey: '',
|
||||||
|
crmToken: ''
|
||||||
}
|
}
|
||||||
public countriesUpdate: Observable<Country[]>;
|
public countriesUpdate: Observable<Country[]>;
|
||||||
public ownerUpdate: Observable<Owner>;
|
public ownerUpdate: Observable<Owner>;
|
||||||
|
@ -182,7 +183,8 @@ export class BusinessComponent implements OnInit {
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString(),
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
payconf: false,
|
payconf: false,
|
||||||
viewkey: ''
|
viewkey: '',
|
||||||
|
crmToken: ''
|
||||||
};
|
};
|
||||||
this.userService.addOwner(this.owner);
|
this.userService.addOwner(this.owner);
|
||||||
this.stepper!.next();
|
this.stepper!.next();
|
||||||
|
|
|
@ -48,7 +48,8 @@ export class FullnodeService{
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString(),
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
payconf: false,
|
payconf: false,
|
||||||
viewkey: ''
|
viewkey: '',
|
||||||
|
crmToken: ''
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(private http: HttpClient, public userService: UserService){
|
constructor(private http: HttpClient, public userService: UserService){
|
||||||
|
|
|
@ -41,7 +41,8 @@ export class HeaderComponent implements OnInit, OnDestroy {
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString(),
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
payconf: false,
|
payconf: false,
|
||||||
viewkey: ''
|
viewkey: '',
|
||||||
|
crmToken: ''
|
||||||
};
|
};
|
||||||
private session: string | null = '';
|
private session: string | null = '';
|
||||||
public heightUpdate: Observable<number>;
|
public heightUpdate: Observable<number>;
|
||||||
|
|
|
@ -54,7 +54,8 @@ export class ItemListComponent implements OnInit{
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString(),
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
payconf: false,
|
payconf: false,
|
||||||
viewkey: ''
|
viewkey: '',
|
||||||
|
crmToken: ''
|
||||||
};
|
};
|
||||||
|
|
||||||
public ownerUpdate: Observable<Owner>;
|
public ownerUpdate: Observable<Owner>;
|
||||||
|
|
|
@ -64,7 +64,8 @@ export class ListOrdersComponent implements OnInit, OnDestroy{
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString(),
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
payconf: false,
|
payconf: false,
|
||||||
viewkey: ''
|
viewkey: '',
|
||||||
|
crmToken: ''
|
||||||
};
|
};
|
||||||
// -------------------------------------
|
// -------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,8 @@ export class LoginComponent implements OnInit, AfterViewInit {
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString(),
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
payconf: false,
|
payconf: false,
|
||||||
viewkey: ''
|
viewkey: '',
|
||||||
|
crmToken: ''
|
||||||
};
|
};
|
||||||
private FullnodeSub: Subscription = new Subscription();
|
private FullnodeSub: Subscription = new Subscription();
|
||||||
private UserSub: Subscription = new Subscription();
|
private UserSub: Subscription = new Subscription();
|
||||||
|
@ -70,18 +71,6 @@ export class LoginComponent implements OnInit, AfterViewInit {
|
||||||
public userUpdate:Observable<User>;
|
public userUpdate:Observable<User>;
|
||||||
public ownerUpdate:Observable<Owner>;
|
public ownerUpdate:Observable<Owner>;
|
||||||
public txsUpdate: Observable<Tx[]>;
|
public txsUpdate: Observable<Tx[]>;
|
||||||
tickets = [
|
|
||||||
{
|
|
||||||
value: 0.001,
|
|
||||||
viewValue: '1 hour: 0.001 ZEC'
|
|
||||||
},{
|
|
||||||
value: 0.005,
|
|
||||||
viewValue: '1 day: 0.005 ZEC'
|
|
||||||
},{
|
|
||||||
value: 0.025,
|
|
||||||
viewValue: '1 week: 0.025 ZEC'
|
|
||||||
}
|
|
||||||
];
|
|
||||||
prompt: boolean = false;
|
prompt: boolean = false;
|
||||||
confirmedMemo: boolean = false;
|
confirmedMemo: boolean = false;
|
||||||
targetBlock: number = 0;
|
targetBlock: number = 0;
|
||||||
|
|
|
@ -50,7 +50,8 @@ export class OrderService {
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString(),
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
payconf: false,
|
payconf: false,
|
||||||
viewkey: ''
|
viewkey: '',
|
||||||
|
crmToken: ''
|
||||||
},
|
},
|
||||||
order: {
|
order: {
|
||||||
address: '',
|
address: '',
|
||||||
|
|
|
@ -23,4 +23,5 @@ export interface Owner {
|
||||||
expiration: string;
|
expiration: string;
|
||||||
payconf: boolean;
|
payconf: boolean;
|
||||||
viewkey: string;
|
viewkey: string;
|
||||||
|
crmToken: string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,8 @@ export class PmtserviceComponent implements OnInit {
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString(),
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
payconf: false,
|
payconf: false,
|
||||||
viewkey: ''
|
viewkey: '',
|
||||||
|
crmToken: ''
|
||||||
};
|
};
|
||||||
|
|
||||||
public order: Order = {
|
public order: Order = {
|
||||||
|
@ -387,4 +388,4 @@ public order: Order = {
|
||||||
// console.error("Error", err);
|
// console.error("Error", err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,8 @@ export class ReceiptService {
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString(),
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
payconf: false,
|
payconf: false,
|
||||||
viewkey: ''
|
viewkey: '',
|
||||||
|
crmToken: ''
|
||||||
},
|
},
|
||||||
order: {
|
order: {
|
||||||
address: '',
|
address: '',
|
||||||
|
|
|
@ -49,7 +49,8 @@ export class UserService{
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString(),
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
payconf: false,
|
payconf: false,
|
||||||
viewkey: ''
|
viewkey: '',
|
||||||
|
crmToken: ''
|
||||||
},
|
},
|
||||||
txs : [],
|
txs : [],
|
||||||
countries: []
|
countries: []
|
||||||
|
|
|
@ -51,7 +51,8 @@ export class ViewerComponent implements OnInit {
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString(),
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
payconf: false,
|
payconf: false,
|
||||||
viewkey: ''
|
viewkey: '',
|
||||||
|
crmToken: ''
|
||||||
};
|
};
|
||||||
public price: number = 1;
|
public price: number = 1;
|
||||||
public addrUpdate: Observable<string>;
|
public addrUpdate: Observable<string>;
|
||||||
|
|
|
@ -47,7 +47,8 @@ export class XeroRegComponent implements OnInit {
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString(),
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
payconf: false,
|
payconf: false,
|
||||||
viewkey: ''
|
viewkey: '',
|
||||||
|
crmToken: ''
|
||||||
};
|
};
|
||||||
public ownerUpdate:Observable<Owner>;
|
public ownerUpdate:Observable<Owner>;
|
||||||
public flag: boolean = false;
|
public flag: boolean = false;
|
||||||
|
|
Loading…
Reference in a new issue