From dcfe5365ae955d37660e2b37c4367d4f15e066d0 Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Wed, 3 Jul 2024 10:27:23 -0300 Subject: [PATCH 1/2] fix(demo): use PageTitle from SampleDemo class --- src/test/java/com/flowingcode/vaadin/addons/demo/Demo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/com/flowingcode/vaadin/addons/demo/Demo.java b/src/test/java/com/flowingcode/vaadin/addons/demo/Demo.java index 3dea180..81cc1fd 100644 --- a/src/test/java/com/flowingcode/vaadin/addons/demo/Demo.java +++ b/src/test/java/com/flowingcode/vaadin/addons/demo/Demo.java @@ -30,7 +30,7 @@ public class Demo extends TabbedDemo { public Demo() { addDemo(new LegacyDemo()); - addDemo(SampleDemo.class, "Demo"); + addDemo(SampleDemo.class); addDemo(SampleDemoDefault.class); addDemo(SampleDemoHighlight.class); addDemo(AdHocDemo.class); From edf05e56051f05e0f44ad5ba4d63f853f95d8e5d Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Wed, 3 Jul 2024 10:28:12 -0300 Subject: [PATCH 2/2] feat: remove "Demo" suffix from Tab title --- .../com/flowingcode/vaadin/addons/demo/EnhancedRouteTabs.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/flowingcode/vaadin/addons/demo/EnhancedRouteTabs.java b/src/main/java/com/flowingcode/vaadin/addons/demo/EnhancedRouteTabs.java index 8f3b25c..d714342 100644 --- a/src/main/java/com/flowingcode/vaadin/addons/demo/EnhancedRouteTabs.java +++ b/src/main/java/com/flowingcode/vaadin/addons/demo/EnhancedRouteTabs.java @@ -44,6 +44,7 @@ public class EnhancedRouteTabs extends Composite implements Before private final Map routerLinkTabMap = new LinkedHashMap<>(); public void add(String text, Class target) { + text = text.replaceFirst("\\s*+[Dd]emo$", ""); RouterLink routerLink = getContent().addRouterLink(text, target); routerLink.setHighlightCondition(HighlightConditions.sameLocation()); routerLink.setHighlightAction(