fix(front-end): improvements
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user