Skip to content

Commit

Permalink
Use the ForwardingPage for the accounting landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
penguineer committed Aug 5, 2024
1 parent 390ca9f commit d0cc311
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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);
}
}

0 comments on commit d0cc311

Please sign in to comment.