Skip to content

Commit

Permalink
Link to accounting in the logged user view
Browse files Browse the repository at this point in the history
  • Loading branch information
penguineer committed Aug 2, 2024
1 parent d2cf1cc commit da7a1da
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
import com.vaadin.flow.component.contextmenu.MenuItem;
import com.vaadin.flow.component.contextmenu.SubMenu;
import com.vaadin.flow.component.html.Div;
import com.vaadin.flow.component.icon.Icon;
import com.vaadin.flow.component.icon.IconFactory;
import com.vaadin.flow.component.icon.VaadinIcon;
import com.vaadin.flow.component.menubar.MenuBar;
import com.vaadin.flow.component.menubar.MenuBarVariant;
import com.vaadin.flow.component.orderedlayout.FlexComponent;
import com.vaadin.flow.component.orderedlayout.HorizontalLayout;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -71,6 +69,9 @@ public LoggedUserView(Supplier<UserDTO> currentUser) {
subMenu.addItem(createMenuItemWithIcon("Dashboard", VaadinIcon.HOME),
e -> navigateTo("/"));

subMenu.addItem(createMenuItemWithIcon("Buchhaltung", VaadinIcon.PIGGY_BANK_COIN),
e -> navigateTo("/accounting"));

subMenu.addSeparator();

if (isAdmin) {
Expand Down

0 comments on commit da7a1da

Please sign in to comment.