v1.0.1 (#16)
* fix: Moved user type to a separate file. fix #7, fix #8 * fix: added more filters * fix: Added attendence clear button and notes. fix #9, fix #10 * fix: bumped version number * fix: Changed wording. Resolves #12 * fix: Resolve #13 * fix: Safari no longer displays system ui over lower guide. * fix: Resolved #14
This commit is contained in:
@@ -11,8 +11,8 @@ import { AdminCommService } from '../../admin-comm.service';
|
||||
})
|
||||
export class AttendenceSummaryComponent implements OnInit {
|
||||
|
||||
data: MatTableDataSource<{room: string, hours: string[]}> = new MatTableDataSource<{room: string, hours: string[]}>();
|
||||
collumns = ['room', 'hours']
|
||||
data: MatTableDataSource<{room: string, hours: string[], notes: string}> = new MatTableDataSource<{room: string, hours: string[], notes: string}>();
|
||||
collumns = ['room', 'hours', 'actions']
|
||||
|
||||
constructor (private toolbar: ToolbarService, private router: Router, private route: ActivatedRoute, private ac: AdminCommService) {
|
||||
this.toolbar.comp = this
|
||||
@@ -21,6 +21,12 @@ export class AttendenceSummaryComponent implements OnInit {
|
||||
]
|
||||
}
|
||||
|
||||
delete(room: string) {
|
||||
this.ac.clean.attendence.deleteRoom(room).subscribe(() => {
|
||||
this.ngOnInit()
|
||||
})
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.ac.clean.attendence.getSummary().subscribe(v => {
|
||||
this.data.data = v
|
||||
|
||||
Reference in New Issue
Block a user