Skip to content

Commit

Permalink
Merge branch 'main' into chore/bump-to-2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewVaadin committed Sep 20, 2023
2 parents 501ec4a + 771be37 commit b913ef2
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.vaadin.sso.demo.view;

import com.vaadin.flow.component.UI;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.html.Anchor;
import com.vaadin.flow.component.html.H2;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.PageTitle;
Expand All @@ -19,5 +22,10 @@ public HomeView() {
getStyle().set("text-align", "center");

add(new H2("This page does not require authentication"));

add(new Anchor("/profile", "Navigate to the secured Profile page"));

add(new Button("Navigate to the secured Profile page",
e -> UI.getCurrent().navigate("profile")));
}
}

0 comments on commit b913ef2

Please sign in to comment.