We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26b68de commit 46bfb46Copy full SHA for 46bfb46
src/main/java/com/flowingcode/vaadin/addons/demo/EnhancedRouteTabs.java
@@ -44,7 +44,9 @@ public class EnhancedRouteTabs extends Composite<EnhancedTabs> implements Before
44
private final Map<RouterLink, Tab> routerLinkTabMap = new LinkedHashMap<>();
45
46
public void add(String text, Class<? extends Component> target) {
47
- text = text.replaceFirst("\\s++[Dd]emo$", "");
+ if (!text.equals("Basic Demo")) {
48
+ text = text.replaceFirst("\\s++[Dd]emo$", "");
49
+ }
50
RouterLink routerLink = getContent().addRouterLink(text, target);
51
routerLink.setHighlightCondition(HighlightConditions.sameLocation());
52
routerLink.setHighlightAction(
0 commit comments