Index daily channel stats and show in dashboard widget
This commit is contained in:
1 parent
f7adf3a17c
commit
f5b3ae5238
13 files changed
+386
-26
No files matched your search
@@ -15,7 +15,11 @@ export class ChangeComponent implements OnChanges {
|
||||
constructor() { }
|
||||
|
||||
ngOnChanges(): void {
|
||||
this.change = (this.current - this.previous) / this.previous * 100;
|
||||
if (!this.previous) {
|
||||
this.change = 0;
|
||||
} else {
|
||||
this.change = (this.current - this.previous) / this.previous * 100;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user