fix(front-end): improvements
All checks were successful
Build, Test and Deploy / test-backend (push) Successful in 41s
Build, Test and Deploy / build-and-push (push) Successful in 49s
Build, Test and Deploy / deploy (push) Successful in 9s

This commit is contained in:
2026-02-25 10:53:08 +01:00
parent 4ddd33662d
commit 54d12f4da0
12 changed files with 112 additions and 92 deletions

View File

@@ -2,18 +2,24 @@ import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { TranslateModule } from '@ngx-translate/core';
import { RouterLink } from '@angular/router';
import { AppToggleSelectorComponent, ToggleOption } from '../app-toggle-selector/app-toggle-selector.component';
@Component({
selector: 'app-locations',
standalone: true,
imports: [CommonModule, TranslateModule, RouterLink],
imports: [CommonModule, TranslateModule, RouterLink, AppToggleSelectorComponent],
templateUrl: './app-locations.component.html',
styleUrl: './app-locations.component.scss'
})
export class AppLocationsComponent {
selectedLocation: 'ticino' | 'bienne' = 'ticino';
selectLocation(location: 'ticino' | 'bienne') {
locationOptions: ToggleOption[] = [
{ label: 'LOCATIONS.TICINO', value: 'ticino' },
{ label: 'LOCATIONS.BIENNE', value: 'bienne' },
];
selectLocation(location: any) {
this.selectedLocation = location;
}
}