From ed742154373c3a4fafae905ffd8038dbae3e32fd Mon Sep 17 00:00:00 2001 From: technbuzz Date: Thu, 13 Feb 2020 11:51:38 +0400 Subject: [PATCH] disabled home --- src/app/home/home.page.html | 4 ++-- src/app/home/home.page.ts | 36 ++++++++++++++++++------------------ 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/app/home/home.page.html b/src/app/home/home.page.html index 7cfc1bc..6f76c34 100644 --- a/src/app/home/home.page.html +++ b/src/app/home/home.page.html @@ -93,7 +93,7 @@ -
+ diff --git a/src/app/home/home.page.ts b/src/app/home/home.page.ts index ca8b067..045289b 100644 --- a/src/app/home/home.page.ts +++ b/src/app/home/home.page.ts @@ -96,24 +96,24 @@ export class HomePage implements OnInit { this.checkRecurring() - this.maxDate = this.cdo.toISOString().split('T')[0] - this.expenses = this.expCollRef.valueChanges().pipe(map(array => { - return array.map(item => { - return { - ...item, - date: item.date.toDate() - } - }) - })) - - this.expenses.pipe(throttleTime(1500)).subscribe((values) => { - new Promise((resolve, reject) => { - this.total = values.reduce((prev, current, index, array) => { - if(index === array.length - 1) resolve('😎') - return prev + Number(current.price) - }, 0) - }) // Promise - })// forEach + // this.maxDate = this.cdo.toISOString().split('T')[0] + // this.expenses = this.expCollRef.valueChanges().pipe(map(array => { + // return array.map(item => { + // return { + // ...item, + // date: item.date.toDate() + // } + // }) + // })) + + // this.expenses.pipe(throttleTime(1500)).subscribe((values) => { + // new Promise((resolve, reject) => { + // this.total = values.reduce((prev, current, index, array) => { + // if(index === array.length - 1) resolve('😎') + // return prev + Number(current.price) + // }, 0) + // }) // Promise + // })// forEach }