From d0cc311ae943bba77109a8257848add6db3976f5 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Mon, 5 Aug 2024 21:02:19 +0200 Subject: [PATCH] Use the ForwardingPage for the accounting landing page --- .../gartenplus/ui/content/accounting/AccountingPage.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/penguineering/gartenplus/ui/content/accounting/AccountingPage.java b/src/main/java/com/penguineering/gartenplus/ui/content/accounting/AccountingPage.java index 873d72b..bb47868 100644 --- a/src/main/java/com/penguineering/gartenplus/ui/content/accounting/AccountingPage.java +++ b/src/main/java/com/penguineering/gartenplus/ui/content/accounting/AccountingPage.java @@ -1,5 +1,6 @@ package com.penguineering.gartenplus.ui.content.accounting; +import com.penguineering.gartenplus.ui.appframe.ForwardingPage; import com.penguineering.gartenplus.ui.appframe.GartenplusPage; import com.penguineering.gartenplus.ui.content.accounting.myfinances.MyFinancesPage; import com.vaadin.flow.router.BeforeEnterEvent; @@ -11,10 +12,8 @@ @Route(value = "", layout = AccountingLayout.class) @PermitAll @PageTitle("GartenPlus | Buchhaltung") -public class AccountingPage extends GartenplusPage implements BeforeEnterObserver { - @Override - public void beforeEnter(BeforeEnterEvent event) { - - event.getUI().navigate(MyFinancesPage.class); +public class AccountingPage extends ForwardingPage { + public AccountingPage() { + super(MyFinancesPage.class); } }