Added and moved breadcrumb data to dashboard
This commit is contained in:
parent
a36e8959fa
commit
750774ec5c
6 changed files with 95 additions and 25 deletions
|
@ -140,11 +140,13 @@
|
|||
<app-breadcrumbs></app-breadcrumbs>
|
||||
<!-- Breadcrumb Menu-->
|
||||
<li class="breadcrumb-menu d-md-down-none">
|
||||
<div class="btn-group" role="group" aria-label="Button group with nested dropdown">
|
||||
<a class="btn btn-secondary" [routerLink]="['/dashboard']"> Money Spent this Month: £364.45</a>
|
||||
<a class="btn btn-secondary" href="#">< Add Transaction</a>
|
||||
<a class="btn btn-secondary" href="#"> Points Total: 206</a>
|
||||
</div>
|
||||
<!-- Currently taking up too much space being here -->
|
||||
<!-- <div class="btn-group" role="group" aria-label="Button group with nested dropdown">
|
||||
<a class="btn btn-secondary" href="#"> Customers This Month: {{customersThisMonth}}</a>
|
||||
<a class="btn btn-secondary" [routerLink]="['/dashboard']"> Money Spent this Month: {{moneySpentThisMonth | currency:'GBP':true:'1.2-2'}}</a>
|
||||
<a class="btn btn-secondary" href="#"> Points Total: {{pointsTotal}}</a>
|
||||
<a class="btn btn-secondary" [routerLink]="['/dashboard']"> Average Transaction Today: {{averageTransactionToday | currency:'GBP':true:'1.2-2'}}</a>
|
||||
</div> -->
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
|
|
|
@ -8,10 +8,27 @@ import { Router } from '@angular/router';
|
|||
providers: [ApiService]
|
||||
})
|
||||
export class FullLayoutComponent implements OnInit {
|
||||
customersThisMonth: any;
|
||||
moneySpentThisMonth: any;
|
||||
pointsTotal: any;
|
||||
averageTransactionToday: any;
|
||||
|
||||
constructor(
|
||||
private api: ApiService,
|
||||
private router: Router,
|
||||
) {}
|
||||
) {
|
||||
/* this.api.breadcrumb_data(undefined)
|
||||
.subscribe(
|
||||
result => {
|
||||
console.log(result);
|
||||
this.customersThisMonth = result.customersthismonth;
|
||||
this.moneySpentThisMonth = result.moneyspentthismonth;
|
||||
this.pointsTotal = result.pointstotal;
|
||||
this.averageTransactionToday = result.averagetransactiontoday;
|
||||
}
|
||||
) */
|
||||
}
|
||||
|
||||
public disabled = false;
|
||||
public status: {isopen: boolean} = {isopen: false};
|
||||
|
||||
|
|
Reference in a new issue