Changed name of new-section to suppliers
This commit is contained in:
parent
db5d9495e2
commit
faeac6b360
6 changed files with 25 additions and 17 deletions
|
@ -42,7 +42,7 @@ import { DashboardModule } from './dashboard/dashboard.module';
|
|||
|
||||
import { DxChartModule } from 'devextreme-angular';
|
||||
import { StackedBarChartComponent } from './panels/stacked-bar.component';
|
||||
import { NewSectionComponent } from './dashboard/new-section.component';
|
||||
import { SuppliersComponent } from './dashboard/suppliers.component';
|
||||
|
||||
|
||||
|
||||
|
@ -68,7 +68,7 @@ import { NewSectionComponent } from './dashboard/new-section.component';
|
|||
BreadcrumbsComponent,
|
||||
SIDEBAR_TOGGLE_DIRECTIVES,
|
||||
AsideToggleDirective,
|
||||
NewSectionComponent,
|
||||
SuppliersComponent,
|
||||
P404Component,
|
||||
P500Component,
|
||||
],
|
||||
|
|
|
@ -7,7 +7,7 @@ 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 { NewSectionComponent } from '../dashboard/new-section.component';
|
||||
import { SuppliersComponent } from '../dashboard/suppliers.component';
|
||||
import { StackedBarChartComponent } from '../panels/stacked-bar.component';
|
||||
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ import { PayrollLogComponent } from './payroll-log.component';
|
|||
import { LeaderboardComponent } from './leaderboard.component';
|
||||
import { MapComponent } from './map.component';
|
||||
import { TrailMapComponent } from './trail-map.component';
|
||||
import { NewSectionComponent } from './new-section.component';
|
||||
import { SuppliersComponent } from './suppliers.component';
|
||||
|
||||
// Using child path to allow for FullLayout theming
|
||||
const routes: Routes = [
|
||||
|
@ -87,9 +87,9 @@ const routes: Routes = [
|
|||
data: { title: 'Give Feedback' },
|
||||
},
|
||||
{
|
||||
path: 'new-section',
|
||||
component: NewSectionComponent,
|
||||
data: { title: 'New Section' }
|
||||
path: 'suppliers',
|
||||
component: SuppliersComponent,
|
||||
data: { title: 'Suppliers' }
|
||||
}
|
||||
],
|
||||
}
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
</thead>
|
||||
<tbody>
|
||||
<!-- table body - name, postcode and spend data should be presented here in cost descending order -->
|
||||
<!-- <tr recur-result *ngFor="let recur of recurList" [categories]="categories" [recur]="recur" (onClick)="recurClick($event, template)"></tr> -->
|
||||
<tr>
|
||||
<tr recur-result *ngFor="let recur of recurList" tr.names="name" tr.recur="recur" (onClick)="recurClick($event, template)"></tr>
|
||||
<!-- <tr>
|
||||
<td>Supplier's Name</td>
|
||||
<td>Supplier's Postcode</td>
|
||||
<td>Supplier's Spend</td>
|
||||
|
@ -26,7 +26,7 @@
|
|||
<td>Supplier 3's Postcode</td>
|
||||
<td>Supplier 3's Spend</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</tbody> -->
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
|
@ -4,11 +4,22 @@ import { AgmCoreModule } from '@agm/core';
|
|||
import { BsModalService, ModalDirective } from 'ngx-bootstrap/modal';
|
||||
import { BsModalRef } from 'ngx-bootstrap/modal/bs-modal-ref.service';
|
||||
|
||||
interface RecurSupplierData {
|
||||
name : string;
|
||||
}
|
||||
|
||||
@Component({
|
||||
templateUrl: 'new-section.component.html',
|
||||
templateUrl: 'suppliers.component.html',
|
||||
})
|
||||
export class NewSectionComponent implements OnInit, AfterViewInit {
|
||||
export class SuppliersComponent implements OnInit, AfterViewInit {
|
||||
@Input() public recurList: Array<RecurSupplierData>;
|
||||
@Output() public onClick = new EventEmitter();
|
||||
@Input() public categories: any;
|
||||
|
||||
|
||||
public recurClick(event: any): void {
|
||||
this.onClick.emit( event );
|
||||
}
|
||||
|
||||
constructor(
|
||||
private api: ApiService,
|
||||
|
@ -21,7 +32,4 @@ export class NewSectionComponent implements OnInit, AfterViewInit {
|
|||
ngAfterViewInit() {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -95,10 +95,10 @@
|
|||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" routerLinkActive="active" [routerLink]="['/new-section']">
|
||||
<a class="nav-link" routerLinkActive="active" [routerLink]="['/suppliers']">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col-2"><i class="icon-speedometer"></i></div>
|
||||
<div class="col-10">New section</div>
|
||||
<div class="col-10">Suppliers</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
|
Reference in a new issue