From d840b4c03c1938951744ec50f21a5c46ee3b6000 Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Wed, 31 Aug 2022 08:56:06 -0500 Subject: [PATCH] Add field to Owner model --- src/app/business/business.component.ts | 6 ++++-- src/app/fullnode.service.ts | 3 ++- src/app/header/header.component.ts | 3 ++- src/app/items/item-list/item-list.component.ts | 3 ++- src/app/listorders/listorders.component.ts | 3 ++- src/app/login/login.component.ts | 15 ++------------- src/app/order/order.service.ts | 3 ++- src/app/owner.model.ts | 1 + src/app/pmtservice/pmtservice.component.ts | 5 +++-- src/app/receipt.service.ts | 3 ++- src/app/user.service.ts | 3 ++- src/app/viewer/viewer.component.ts | 3 ++- src/app/xeroreg/xeroreg.component.ts | 3 ++- 13 files changed, 28 insertions(+), 26 deletions(-) diff --git a/src/app/business/business.component.ts b/src/app/business/business.component.ts index 4ce4405..01c9b58 100644 --- a/src/app/business/business.component.ts +++ b/src/app/business/business.component.ts @@ -69,7 +69,8 @@ export class BusinessComponent implements OnInit { invoices: false, expiration: new Date(Date.now()).toISOString(), payconf: false, - viewkey: '' + viewkey: '', + crmToken: '' } public countriesUpdate: Observable; public ownerUpdate: Observable; @@ -182,7 +183,8 @@ export class BusinessComponent implements OnInit { invoices: false, expiration: new Date(Date.now()).toISOString(), payconf: false, - viewkey: '' + viewkey: '', + crmToken: '' }; this.userService.addOwner(this.owner); this.stepper!.next(); diff --git a/src/app/fullnode.service.ts b/src/app/fullnode.service.ts index 7c9ff44..255a14b 100644 --- a/src/app/fullnode.service.ts +++ b/src/app/fullnode.service.ts @@ -48,7 +48,8 @@ export class FullnodeService{ invoices: false, expiration: new Date(Date.now()).toISOString(), payconf: false, - viewkey: '' + viewkey: '', + crmToken: '' }; constructor(private http: HttpClient, public userService: UserService){ diff --git a/src/app/header/header.component.ts b/src/app/header/header.component.ts index 8ae688c..303aa18 100644 --- a/src/app/header/header.component.ts +++ b/src/app/header/header.component.ts @@ -41,7 +41,8 @@ export class HeaderComponent implements OnInit, OnDestroy { invoices: false, expiration: new Date(Date.now()).toISOString(), payconf: false, - viewkey: '' + viewkey: '', + crmToken: '' }; private session: string | null = ''; public heightUpdate: Observable; diff --git a/src/app/items/item-list/item-list.component.ts b/src/app/items/item-list/item-list.component.ts index 645e04d..3c952fd 100644 --- a/src/app/items/item-list/item-list.component.ts +++ b/src/app/items/item-list/item-list.component.ts @@ -54,7 +54,8 @@ export class ItemListComponent implements OnInit{ invoices: false, expiration: new Date(Date.now()).toISOString(), payconf: false, - viewkey: '' + viewkey: '', + crmToken: '' }; public ownerUpdate: Observable; diff --git a/src/app/listorders/listorders.component.ts b/src/app/listorders/listorders.component.ts index f18f492..1b286d5 100644 --- a/src/app/listorders/listorders.component.ts +++ b/src/app/listorders/listorders.component.ts @@ -64,7 +64,8 @@ export class ListOrdersComponent implements OnInit, OnDestroy{ invoices: false, expiration: new Date(Date.now()).toISOString(), payconf: false, - viewkey: '' + viewkey: '', + crmToken: '' }; // ------------------------------------- diff --git a/src/app/login/login.component.ts b/src/app/login/login.component.ts index 1253927..aa96ced 100644 --- a/src/app/login/login.component.ts +++ b/src/app/login/login.component.ts @@ -61,7 +61,8 @@ export class LoginComponent implements OnInit, AfterViewInit { invoices: false, expiration: new Date(Date.now()).toISOString(), payconf: false, - viewkey: '' + viewkey: '', + crmToken: '' }; private FullnodeSub: Subscription = new Subscription(); private UserSub: Subscription = new Subscription(); @@ -70,18 +71,6 @@ export class LoginComponent implements OnInit, AfterViewInit { public userUpdate:Observable; public ownerUpdate:Observable; public txsUpdate: Observable; - 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; confirmedMemo: boolean = false; targetBlock: number = 0; diff --git a/src/app/order/order.service.ts b/src/app/order/order.service.ts index 229e0b6..d52f419 100644 --- a/src/app/order/order.service.ts +++ b/src/app/order/order.service.ts @@ -50,7 +50,8 @@ export class OrderService { invoices: false, expiration: new Date(Date.now()).toISOString(), payconf: false, - viewkey: '' + viewkey: '', + crmToken: '' }, order: { address: '', diff --git a/src/app/owner.model.ts b/src/app/owner.model.ts index 79b1bf8..dca2e2e 100644 --- a/src/app/owner.model.ts +++ b/src/app/owner.model.ts @@ -23,4 +23,5 @@ export interface Owner { expiration: string; payconf: boolean; viewkey: string; + crmToken: string; } diff --git a/src/app/pmtservice/pmtservice.component.ts b/src/app/pmtservice/pmtservice.component.ts index 8585b62..78114a4 100644 --- a/src/app/pmtservice/pmtservice.component.ts +++ b/src/app/pmtservice/pmtservice.component.ts @@ -76,7 +76,8 @@ export class PmtserviceComponent implements OnInit { invoices: false, expiration: new Date(Date.now()).toISOString(), payconf: false, - viewkey: '' + viewkey: '', + crmToken: '' }; public order: Order = { @@ -387,4 +388,4 @@ public order: Order = { // console.error("Error", err); } } -} \ No newline at end of file +} diff --git a/src/app/receipt.service.ts b/src/app/receipt.service.ts index a140ea5..0460b6f 100644 --- a/src/app/receipt.service.ts +++ b/src/app/receipt.service.ts @@ -39,7 +39,8 @@ export class ReceiptService { invoices: false, expiration: new Date(Date.now()).toISOString(), payconf: false, - viewkey: '' + viewkey: '', + crmToken: '' }, order: { address: '', diff --git a/src/app/user.service.ts b/src/app/user.service.ts index e312dba..7b16793 100644 --- a/src/app/user.service.ts +++ b/src/app/user.service.ts @@ -49,7 +49,8 @@ export class UserService{ invoices: false, expiration: new Date(Date.now()).toISOString(), payconf: false, - viewkey: '' + viewkey: '', + crmToken: '' }, txs : [], countries: [] diff --git a/src/app/viewer/viewer.component.ts b/src/app/viewer/viewer.component.ts index 1133205..d4d7864 100644 --- a/src/app/viewer/viewer.component.ts +++ b/src/app/viewer/viewer.component.ts @@ -51,7 +51,8 @@ export class ViewerComponent implements OnInit { invoices: false, expiration: new Date(Date.now()).toISOString(), payconf: false, - viewkey: '' + viewkey: '', + crmToken: '' }; public price: number = 1; public addrUpdate: Observable; diff --git a/src/app/xeroreg/xeroreg.component.ts b/src/app/xeroreg/xeroreg.component.ts index f82b246..4783326 100644 --- a/src/app/xeroreg/xeroreg.component.ts +++ b/src/app/xeroreg/xeroreg.component.ts @@ -47,7 +47,8 @@ export class XeroRegComponent implements OnInit { invoices: false, expiration: new Date(Date.now()).toISOString(), payconf: false, - viewkey: '' + viewkey: '', + crmToken: '' }; public ownerUpdate:Observable; public flag: boolean = false;