fix: schedule weekly view label

This commit is contained in:
Rainer Killinger
2025-08-15 15:26:08 +02:00
parent 7e0ba00947
commit 9138fcc631
7 changed files with 10 additions and 10 deletions

View File

@@ -33,9 +33,9 @@ describe('dashboard', async function () {
describe('schedule section', function () {
it('should lead to the week overview', function () {
cy.get('.schedule')
.contains('a', /Wochen.*übersicht/)
.contains('a', /Wochen.*ansicht/)
.click();
cy.url().should('include', '/schedule/week-overview');
cy.url().should('include', '/schedule/weekly-view');
});
it('should lead to the calendar', function () {

View File

@@ -19,7 +19,7 @@
</ion-toolbar>
</ion-header>
<div #schedule class="schedule">
<a [routerLink]="['/schedule/week-overview']">
<a [routerLink]="['/schedule/weekly-view']">
<ion-icon [size]="36" [weight]="300" name="calendar_month"></ion-icon>
<ion-label [innerHTML]="'schedule.recurring' | translate"></ion-label>
</a>

View File

@@ -136,7 +136,7 @@ export class SchedulePageComponent implements OnInit, AfterViewInit {
onInit() {
this.tabChoreographer = new SharedAxisChoreographer(this.activatedRoute.snapshot.paramMap.get('mode'), [
'calendar',
'week-overview',
'weekly-view',
'single',
]);
}

View File

@@ -21,7 +21,7 @@
@if (tabChoreographer.currentValue === 'calendar') {
<ion-title [innerHTML]="'schedule.calendar' | translate | titlecase"></ion-title>
}
@if (tabChoreographer.currentValue === 'week-overview') {
@if (tabChoreographer.currentValue === 'weekly-view') {
<ion-title [innerHTML]="'schedule.recurring' | translate | titlecase"></ion-title>
}
@if (tabChoreographer.currentValue === 'single') {
@@ -39,7 +39,7 @@
<ion-label class="ion-text-wrap" [innerHTML]="'schedule.calendar' | translate"></ion-label>
<ion-icon name="calendar_today"></ion-icon>
</ion-segment-button>
<ion-segment-button value="week-overview" layout="icon-start">
<ion-segment-button value="weekly-view" layout="icon-start">
<ion-label class="ion-text-wrap" [innerHTML]="'schedule.recurring' | translate"></ion-label>
<ion-icon name="event_repeat"></ion-icon>
</ion-segment-button>
@@ -61,7 +61,7 @@
<stapps-calendar-view [layout]="layout"></stapps-calendar-view>
}
<!-- Schedule view needs full week -->
@case ('week-overview') {
@case ('weekly-view') {
<stapps-schedule-view [layout]="layout"></stapps-schedule-view>
}
@case ('single') {

View File

@@ -66,7 +66,7 @@ import {IonIconDirective} from 'src/app/util/ion-icon/ion-icon.directive';
const settingsRoutes: Routes = [
{path: 'schedule', redirectTo: 'schedule/calendar/now'},
{path: 'schedule/calendar', redirectTo: 'schedule/calendar/now'},
{path: 'schedule/week-overview', redirectTo: 'schedule/week-overview/now'},
{path: 'schedule/weekly-view', redirectTo: 'schedule/weekly-view/now'},
{path: 'schedule/single', redirectTo: 'schedule/single/now'},
// calendar | recurring | single
{path: 'schedule/:mode/:date', component: SchedulePageComponent},

View File

@@ -500,7 +500,7 @@
"view": {
"today": "Heute"
},
"recurring": "Wochen&shy;übersicht",
"recurring": "Wochen&shy;ansicht",
"calendar": "Kalender",
"single": "Einzel&shy;termine",
"addEventPage": {

View File

@@ -500,7 +500,7 @@
"view": {
"today": "Today"
},
"recurring": "Week Overview",
"recurring": "Weekly View",
"calendar": "Calendar",
"single": "Single Events",
"addEventPage": {