diff --git a/src/main/bundles/prod.bundle b/src/main/bundles/prod.bundle index f2d2176..61c51e1 100644 Binary files a/src/main/bundles/prod.bundle and b/src/main/bundles/prod.bundle differ diff --git a/src/main/java/com/primefactorsolutions/views/LoginView.java b/src/main/java/com/primefactorsolutions/views/LoginView.java index 9a280c5..3b7dd9a 100644 --- a/src/main/java/com/primefactorsolutions/views/LoginView.java +++ b/src/main/java/com/primefactorsolutions/views/LoginView.java @@ -2,6 +2,7 @@ package com.primefactorsolutions.views; import com.vaadin.flow.component.html.Anchor; import com.vaadin.flow.component.html.H1; +import com.vaadin.flow.component.html.Span; import com.vaadin.flow.component.login.LoginForm; import com.vaadin.flow.component.orderedlayout.VerticalLayout; import com.vaadin.flow.router.BeforeEnterEvent; @@ -9,6 +10,9 @@ import com.vaadin.flow.router.BeforeEnterObserver; import com.vaadin.flow.router.PageTitle; import com.vaadin.flow.router.Route; import com.vaadin.flow.server.auth.AnonymousAllowed; +import com.vaadin.flow.theme.lumo.LumoUtility; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; @Route("login") @PageTitle("PFS Intra") @@ -17,7 +21,7 @@ public class LoginView extends VerticalLayout implements BeforeEnterObserver { private final LoginForm login = new LoginForm(); - public LoginView() { + public LoginView(@Autowired @Value("${git.commit.id.abbrev}") final String commitId) { addClassName("login-view"); setSizeFull(); setAlignItems(Alignment.CENTER); @@ -29,6 +33,10 @@ public class LoginView extends VerticalLayout implements BeforeEnterObserver { add(new H1("PFS Intra")); add(login); add(new Anchor("/password-recovery", "Reset password?")); + + final Span version = new Span(String.format("v.%s", commitId)); + version.addClassName(LumoUtility.FontSize.XSMALL); + add(version); } @Override