From 8628f79043f2a7e104077c1e2ce2992a96a3f237 Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Wed, 10 May 2023 14:49:01 -0500 Subject: [PATCH] Remove logging --- src/app/listorders/listorders.component.ts | 54 +++++++++++----------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/src/app/listorders/listorders.component.ts b/src/app/listorders/listorders.component.ts index a78e3bc..8d90f35 100644 --- a/src/app/listorders/listorders.component.ts +++ b/src/app/listorders/listorders.component.ts @@ -128,7 +128,7 @@ export class ListOrdersComponent implements OnInit, OnDestroy{ var today = new Date(); this.orders = orders; - console.log(this.ownerUpdate); + //console.log(this.ownerUpdate); for (let i=0; i < this.orders.length; i++){ this.total += this.orders[i].totalZec; // @@ -205,7 +205,7 @@ export class ListOrdersComponent implements OnInit, OnDestroy{ openDbExport(){ const dialogConfig = new MatDialogConfig(); - console.log('openDbExport ---'); + //console.log('openDbExport ---'); dialogConfig.disableClose = false; dialogConfig.autoFocus = true; @@ -218,33 +218,33 @@ export class ListOrdersComponent implements OnInit, OnDestroy{ } - chgUILanguage(){ - console.log('LISTORDERS.chgUILanguage Called '); - this.languageService.getViewElements('listorders').subscribe( - response => { - console.log('Received >> ', response ); - console.log('Language Code : ', response.language); - console.log('Component Name : ',response.component); - console.log('Language data : ',response.data); + chgUILanguage(){ + //console.log('LISTORDERS.chgUILanguage Called '); + this.languageService.getViewElements('listorders').subscribe({ + next: response => { + //console.log('Received >> ', response ); + //console.log('Language Code : ', response.language); + //console.log('Component Name : ',response.component); + //console.log('Language data : ',response.data); - this.vE.listordersBacktoshopBtn = response.data.listorders_backtoshop_btn; - this.vE.listordersExportOrders = response.data.listorders_export_orders; - this.vE.listordersTodaysTotal = response.data.listorders_todays_total; - this.vE.listordersOverallTotal = response.data.listorders_overall_total; - this.vE.listordersOrderId = response.data.listorders_order_id; - this.vE.listordersOrderTotal = response.data.listorders_order_total; - this.vE.listordersItemLbl = response.data.listorders_item_lbl; - this.vE.listordersQtyLbl = response.data.listorders_qty_lbl; - this.vE.listordersTotalLbl = response.data.listorders_total_lbl; - this.vE.listordersInvoiceBtn = response.data.listorders_invoice_btn; - this.vE.listordersReceiptBtn = response.data.listorders_receipt_btn; - this.vE.listordersNoOrders = response.data.listorders_no_orders; - this.vE.listordersEndDate = response.data.listorders_end_date; + this.vE.listordersBacktoshopBtn = response.data.listorders_backtoshop_btn; + this.vE.listordersExportOrders = response.data.listorders_export_orders; + this.vE.listordersTodaysTotal = response.data.listorders_todays_total; + this.vE.listordersOverallTotal = response.data.listorders_overall_total; + this.vE.listordersOrderId = response.data.listorders_order_id; + this.vE.listordersOrderTotal = response.data.listorders_order_total; + this.vE.listordersItemLbl = response.data.listorders_item_lbl; + this.vE.listordersQtyLbl = response.data.listorders_qty_lbl; + this.vE.listordersTotalLbl = response.data.listorders_total_lbl; + this.vE.listordersInvoiceBtn = response.data.listorders_invoice_btn; + this.vE.listordersReceiptBtn = response.data.listorders_receipt_btn; + this.vE.listordersNoOrders = response.data.listorders_no_orders; + this.vE.listordersEndDate = response.data.listorders_end_date; - }, - error => { console.log('Error >> ',error); } - ); - } + }, + error: error => { console.log('Error >> ',error); } + }); + } paySession() { const dialogConfig = new MatDialogConfig();