mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 17:12:43 +00:00
fix: schedule weekly view label
This commit is contained in:
@@ -33,9 +33,9 @@ describe('dashboard', async function () {
|
|||||||
describe('schedule section', function () {
|
describe('schedule section', function () {
|
||||||
it('should lead to the week overview', function () {
|
it('should lead to the week overview', function () {
|
||||||
cy.get('.schedule')
|
cy.get('.schedule')
|
||||||
.contains('a', /Wochen.*übersicht/)
|
.contains('a', /Wochen.*ansicht/)
|
||||||
.click();
|
.click();
|
||||||
cy.url().should('include', '/schedule/week-overview');
|
cy.url().should('include', '/schedule/weekly-view');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should lead to the calendar', function () {
|
it('should lead to the calendar', function () {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
<div #schedule class="schedule">
|
<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-icon [size]="36" [weight]="300" name="calendar_month"></ion-icon>
|
||||||
<ion-label [innerHTML]="'schedule.recurring' | translate"></ion-label>
|
<ion-label [innerHTML]="'schedule.recurring' | translate"></ion-label>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ export class SchedulePageComponent implements OnInit, AfterViewInit {
|
|||||||
onInit() {
|
onInit() {
|
||||||
this.tabChoreographer = new SharedAxisChoreographer(this.activatedRoute.snapshot.paramMap.get('mode'), [
|
this.tabChoreographer = new SharedAxisChoreographer(this.activatedRoute.snapshot.paramMap.get('mode'), [
|
||||||
'calendar',
|
'calendar',
|
||||||
'week-overview',
|
'weekly-view',
|
||||||
'single',
|
'single',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
@if (tabChoreographer.currentValue === 'calendar') {
|
@if (tabChoreographer.currentValue === 'calendar') {
|
||||||
<ion-title [innerHTML]="'schedule.calendar' | translate | titlecase"></ion-title>
|
<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>
|
<ion-title [innerHTML]="'schedule.recurring' | translate | titlecase"></ion-title>
|
||||||
}
|
}
|
||||||
@if (tabChoreographer.currentValue === 'single') {
|
@if (tabChoreographer.currentValue === 'single') {
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
<ion-label class="ion-text-wrap" [innerHTML]="'schedule.calendar' | translate"></ion-label>
|
<ion-label class="ion-text-wrap" [innerHTML]="'schedule.calendar' | translate"></ion-label>
|
||||||
<ion-icon name="calendar_today"></ion-icon>
|
<ion-icon name="calendar_today"></ion-icon>
|
||||||
</ion-segment-button>
|
</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-label class="ion-text-wrap" [innerHTML]="'schedule.recurring' | translate"></ion-label>
|
||||||
<ion-icon name="event_repeat"></ion-icon>
|
<ion-icon name="event_repeat"></ion-icon>
|
||||||
</ion-segment-button>
|
</ion-segment-button>
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
<stapps-calendar-view [layout]="layout"></stapps-calendar-view>
|
<stapps-calendar-view [layout]="layout"></stapps-calendar-view>
|
||||||
}
|
}
|
||||||
<!-- Schedule view needs full week -->
|
<!-- Schedule view needs full week -->
|
||||||
@case ('week-overview') {
|
@case ('weekly-view') {
|
||||||
<stapps-schedule-view [layout]="layout"></stapps-schedule-view>
|
<stapps-schedule-view [layout]="layout"></stapps-schedule-view>
|
||||||
}
|
}
|
||||||
@case ('single') {
|
@case ('single') {
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ import {IonIconDirective} from 'src/app/util/ion-icon/ion-icon.directive';
|
|||||||
const settingsRoutes: Routes = [
|
const settingsRoutes: Routes = [
|
||||||
{path: 'schedule', redirectTo: 'schedule/calendar/now'},
|
{path: 'schedule', redirectTo: 'schedule/calendar/now'},
|
||||||
{path: 'schedule/calendar', 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'},
|
{path: 'schedule/single', redirectTo: 'schedule/single/now'},
|
||||||
// calendar | recurring | single
|
// calendar | recurring | single
|
||||||
{path: 'schedule/:mode/:date', component: SchedulePageComponent},
|
{path: 'schedule/:mode/:date', component: SchedulePageComponent},
|
||||||
|
|||||||
@@ -500,7 +500,7 @@
|
|||||||
"view": {
|
"view": {
|
||||||
"today": "Heute"
|
"today": "Heute"
|
||||||
},
|
},
|
||||||
"recurring": "Wochen­übersicht",
|
"recurring": "Wochen­ansicht",
|
||||||
"calendar": "Kalender",
|
"calendar": "Kalender",
|
||||||
"single": "Einzel­termine",
|
"single": "Einzel­termine",
|
||||||
"addEventPage": {
|
"addEventPage": {
|
||||||
|
|||||||
@@ -500,7 +500,7 @@
|
|||||||
"view": {
|
"view": {
|
||||||
"today": "Today"
|
"today": "Today"
|
||||||
},
|
},
|
||||||
"recurring": "Week Overview",
|
"recurring": "Weekly View",
|
||||||
"calendar": "Calendar",
|
"calendar": "Calendar",
|
||||||
"single": "Single Events",
|
"single": "Single Events",
|
||||||
"addEventPage": {
|
"addEventPage": {
|
||||||
|
|||||||
Reference in New Issue
Block a user