Skip to content

Commit 0d5fea2

Browse files
committed
merge home link with site link
1 parent 447f413 commit 0d5fea2

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

consulo.app/plugins-frontend/src/main/java/consulo/app/plugins/frontend/ui/PluginsAppLayout.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import com.vaadin.flow.component.button.Button;
88
import com.vaadin.flow.component.button.ButtonVariant;
99
import com.vaadin.flow.component.html.Div;
10-
import com.vaadin.flow.component.html.H1;
1110
import com.vaadin.flow.component.icon.SvgIcon;
1211
import com.vaadin.flow.component.orderedlayout.HorizontalLayout;
1312
import com.vaadin.flow.dom.Element;
@@ -47,22 +46,16 @@ public PluginsAppLayout(ObjectMapper objectMapper,
4746
myPluginsCacheService = pluginsCacheService;
4847
myTagsLocalizeLoader = tagsLocalizeLoader;
4948
mySitemapCacheService = sitemapCacheService;
50-
H1 title = new H1("plugins.consulo.app");
51-
title.getStyle().set("font-size", "var(--lumo-font-size-l)")
52-
.set("left", "var(--lumo-space-l)")
53-
.set("margin", "0")
54-
.set("position", "absolute");
5549

5650
HorizontalLayout navigation = getNavigation();
57-
navigation.getElement();
5851

5952
myThemeIconHolder = new Div();
6053
myThemeIconHolder.getStyle().set("font-size", "var(--lumo-font-size-l)")
6154
.set("right", "var(--lumo-space-l)")
6255
.set("margin", "0")
6356
.set("position", "absolute");
6457

65-
addToNavbar(title, navigation, myThemeIconHolder);
58+
addToNavbar(navigation, myThemeIconHolder);
6659
}
6760

6861
@Override
@@ -159,7 +152,7 @@ private HorizontalLayout getNavigation() {
159152
}
160153

161154
private RouterLink createLink(Class<? extends Component> viewClass) {
162-
RouterLink link = new RouterLink("Home", viewClass);
155+
RouterLink link = new RouterLink("Plugins Repository", viewClass);
163156

164157
link.addClassNames(LumoUtility.Display.FLEX,
165158
LumoUtility.AlignItems.CENTER,

0 commit comments

Comments
 (0)