diff --git a/src/app/dashboard/dashboard-customer.component.ts b/src/app/dashboard/dashboard-customer.component.ts
index d70a901..0d17e88 100644
--- a/src/app/dashboard/dashboard-customer.component.ts
+++ b/src/app/dashboard/dashboard-customer.component.ts
@@ -6,6 +6,8 @@ import { GraphWidget } from '../widgets/graph-widget.component';
import { CustBarSnippetComponent } from '../snippets/cust-snippet-bar.component';
import { PiePanel } from '../panels/pie-panel.component';
import { DataType } from '../shared/data-types.enum';
+import * as moment from 'moment';
+import 'rxjs/add/operator/map';
@Component({
templateUrl: 'dashboard-customer.component.html'
@@ -25,7 +27,7 @@ export class DashboardCustomerComponent implements OnInit {
public chartType = 'doughnut';
public chartLegend = true;
- public doughnutChartDataCategory: number[] = [];
+ public doughnutChartDataCategory: any[] = [];
public doughnutChartLabelsCategory: string[] = [];
public doughtnutChartOptionsCategory:any = {
@@ -293,7 +295,6 @@ export class DashboardCustomerComponent implements OnInit {
var dataset = data.datasets[tooltipItem.datasetIndex];
var value = dataset.data[tooltipItem.index];
return this.currencyPipe.transform(value, 'GBP', 'symbol', '1.2-2');
- return value || '0';
}
// events
diff --git a/src/app/dashboard/transaction-log.component.html b/src/app/dashboard/transaction-log.component.html
index 424897e..9b07ec1 100644
--- a/src/app/dashboard/transaction-log.component.html
+++ b/src/app/dashboard/transaction-log.component.html
@@ -1,49 +1,6 @@
-
-
-
-
-
-
- Seller |
- Value |
- Purchase Time |
-
-
-
-
-
-
-
-
-
-
-
- No Transactions available.
-
-
+
+
+
+
+
+
+ Seller |
+ Value |
+ Purchase Time |
+
+
+
+
+
+
+
+
+
+
+
+ No Transactions available.
+
+
diff --git a/src/app/layouts/full-layout.component.html b/src/app/layouts/full-layout.component.html
index 8e4d931..13887c7 100644
--- a/src/app/layouts/full-layout.component.html
+++ b/src/app/layouts/full-layout.component.html
@@ -97,6 +97,14 @@
+
+
+
+
+
Click to Close Menu
+
+
+
diff --git a/src/app/layouts/full-layout.component.ts b/src/app/layouts/full-layout.component.ts
index 453a8df..ff74ceb 100644
--- a/src/app/layouts/full-layout.component.ts
+++ b/src/app/layouts/full-layout.component.ts
@@ -39,7 +39,6 @@ export class FullLayoutComponent implements OnInit {
.logout()
.subscribe(
result => {
- console.log('Logged out!');
localStorage.clear();
this.router.navigate(['/login']);
}
diff --git a/src/app/panels/pie-panel.component.ts b/src/app/panels/pie-panel.component.ts
index 3b8b39c..80f64e1 100644
--- a/src/app/panels/pie-panel.component.ts
+++ b/src/app/panels/pie-panel.component.ts
@@ -3,7 +3,6 @@ import { ApiService } from '../providers/api-service';
import { CustPiesService } from '../providers/cust-pies.service';
import { DataType } from '../shared/data-types.enum';
import { ChartData } from '../_interfaces/chart-data';
-import * as moment from 'moment';
import 'rxjs/add/operator/map';
@Component({