Skip to content

Commit

Permalink
Merge pull request eclipse-hawkbit#83 from bsinno/demo-login-opzional
Browse files Browse the repository at this point in the history
Made demo login field optional.
  • Loading branch information
kaizimmerm committed Mar 11, 2016
2 parents 4b5795d + b5a826e commit 9f7ed2d
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@

/**
* Login view for login credentials.
*
*
*
*/
@SpringView(name = "")
@UIScope
Expand Down Expand Up @@ -234,10 +231,12 @@ private Component buildLinks() {
links.addComponent(docuLink);
docuLink.addStyleName(ValoTheme.LINK_SMALL);

final Link demoLink = SPUIComponentProvider.getLink(SPUIComponetIdProvider.LINK_DEMO,
i18n.get("link.demo.name"), "?demo", FontAwesome.DESKTOP, "_top", linkStyle, true);
links.addComponent(demoLink);
demoLink.addStyleName(ValoTheme.LINK_SMALL);
if (!uiProperties.getDemo().getUser().isEmpty()) {
final Link demoLink = SPUIComponentProvider.getLink(SPUIComponetIdProvider.LINK_DEMO,
i18n.get("link.demo.name"), "?demo", FontAwesome.DESKTOP, "_top", linkStyle, true);
links.addComponent(demoLink);
demoLink.addStyleName(ValoTheme.LINK_SMALL);
}

if (!uiProperties.getLinks().getRequestAccount().isEmpty()) {
final Link requestAccountLink = SPUIComponentProvider.getLink(SPUIComponetIdProvider.LINK_REQUESTACCOUNT,
Expand Down

0 comments on commit 9f7ed2d

Please sign in to comment.