diff --git a/src/app/settings/settings.component.html b/src/app/settings/settings.component.html index 6ccc3ea..e2906d6 100644 --- a/src/app/settings/settings.component.html +++ b/src/app/settings/settings.component.html @@ -28,12 +28,17 @@ #labelLayoutSelect="matSelect" [formControl]="labelLayoutFormControl" > - -
-
+ {{selectedLabelLayout.name}} + +
+
{{layout.name}}
-
+
diff --git a/src/app/settings/settings.component.ts b/src/app/settings/settings.component.ts index 8664aa7..a279b39 100644 --- a/src/app/settings/settings.component.ts +++ b/src/app/settings/settings.component.ts @@ -53,6 +53,13 @@ export class SettingsComponent implements AfterViewInit { return this.numCopiesFormControl.valid && this.locationIdFormControl.valid; } + get selectedLabelLayout(): LabelLayout { + const selectedLayoutId = this.labelLayoutFormControl.value; + if (selectedLayoutId) { + return this.labelLayouts.find(layout => layout.id === selectedLayoutId); + } + } + ngAfterViewInit(): void { this.locationIdInput.focus(); this.changeDetector.detectChanges();