From 4c9caeca49c2245a0de4ee8534ed9178873f05fa Mon Sep 17 00:00:00 2001 From: Sandro Date: Fri, 30 Aug 2024 17:21:26 +0200 Subject: [PATCH] scroll to kursCategoryHeader #186 --- app/router.js | 2 ++ app/templates/components/area-navigation.hbs | 2 +- public/locale/de-CH.js | 1 + public/locale/fr-CH.js | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/router.js b/app/router.js index a7f2f749..03f8b35e 100644 --- a/app/router.js +++ b/app/router.js @@ -23,6 +23,8 @@ const Router = EmberRouter.extend({ if (this.currentPath === 'list.category.event.subscribe') { scrollToTimeout(subscriptionProcessId); + } else if (this.currentPath !== 'list.category' && screen.width <= 960) { + scrollToTimeout('headerCategory'); } else if (this.currentPath !== 'list.index') { scrollToTimeout(rootElement.id); } diff --git a/app/templates/components/area-navigation.hbs b/app/templates/components/area-navigation.hbs index 6fc24203..b18d1170 100644 --- a/app/templates/components/area-navigation.hbs +++ b/app/templates/components/area-navigation.hbs @@ -1,5 +1,5 @@ {{#unless this.hideHeading}} -

{{this.area.name}}

+

{{translate "kursCategoryHeader"}}

{{/unless}}