Files
print-calculator/frontend/src/app/shared/components/app-locations/app-locations.component.ts
Joe Küng 54d12f4da0
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
fix(front-end): improvements
2026-02-25 10:53:08 +01:00

26 lines
865 B
TypeScript

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, AppToggleSelectorComponent],
templateUrl: './app-locations.component.html',
styleUrl: './app-locations.component.scss'
})
export class AppLocationsComponent {
selectedLocation: 'ticino' | 'bienne' = 'ticino';
locationOptions: ToggleOption[] = [
{ label: 'LOCATIONS.TICINO', value: 'ticino' },
{ label: 'LOCATIONS.BIENNE', value: 'bienne' },
];
selectLocation(location: any) {
this.selectedLocation = location;
}
}