mirror of
https://github.com/sartography/uva-covid19-testing-frontend.git
synced 2025-03-03 16:40:57 +00:00
Actually inserts the real data into the label.
This commit is contained in:
parent
95fe8e413d
commit
d0f730128c
@ -10,7 +10,7 @@ import {SettingsService} from '../services/settings.service';
|
||||
templateUrl: './label-layout.component.html',
|
||||
styleUrls: ['./label-layout.component.scss']
|
||||
})
|
||||
export class LabelLayoutComponent {
|
||||
export class LabelLayoutComponent implements OnInit {
|
||||
@Input() dateCreated: Date;
|
||||
@Input() barCode: string;
|
||||
@Input() initials: string;
|
||||
@ -20,11 +20,13 @@ export class LabelLayoutComponent {
|
||||
|
||||
constructor(private settingsService: SettingsService) {
|
||||
this.settings = this.settingsService.getSettings();
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.sample = {
|
||||
barcode: '',
|
||||
student_id: '123456789',
|
||||
initials: 'ABCDE',
|
||||
student_id: this.barCode,
|
||||
initials: this.initials,
|
||||
date: new Date(),
|
||||
location: this.settings.locationId,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user