Added Shift update
This commit is contained in:
@@ -1,12 +1,26 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { TableComponent } from '../../../shared/components/table/table.component';
|
||||
import { UpdateService } from './update.service';
|
||||
import { TitleComponent } from '../../../shared/components/title/title.component';
|
||||
import { ShortenPipe } from '../../../shared/pipe/shorten.pipe';
|
||||
|
||||
@Component({
|
||||
selector: 'app-shift-update',
|
||||
standalone: true,
|
||||
imports: [],
|
||||
imports: [TableComponent, TitleComponent, ],
|
||||
templateUrl: './shift-update.component.html',
|
||||
styleUrl: './shift-update.component.scss'
|
||||
styleUrl: './shift-update.component.scss',
|
||||
providers: [UpdateService]
|
||||
})
|
||||
export class ShiftUpdateComponent {
|
||||
export class ShiftUpdateComponent implements OnInit {
|
||||
tableHeaderList = ['date','detail','ref','handler']
|
||||
updateDataList: any[] = [];
|
||||
|
||||
constructor(private updateService: UpdateService) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.updateDataList = this.updateService.allUpdate;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user