Mercurial > gemma
changeset 970:166782ebab96
feat: versioninfo on login too
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 18 Oct 2018 10:14:46 +0200 |
parents | a4e003ba0074 |
children | f9fb6c399f3f |
files | client/src/login/Login.vue |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/login/Login.vue Wed Oct 17 17:23:46 2018 +0200 +++ b/client/src/login/Login.vue Thu Oct 18 10:14:46 2018 +0200 @@ -46,6 +46,7 @@ <!-- bottom logo section --> <div class="mb-3 secondary-logo"><img :src="secondaryLogo"></div> + <div id="versioninfo"><small>Version: {{version}}</small></div> </div> </div> </template>) @@ -58,6 +59,12 @@ @extend %fully-centered; } +#versioninfo { + position: absolute; + bottom: 0; + right: 0; +} + .loginform { max-width: 375px; margin-left: auto; @@ -65,6 +72,7 @@ } .loginmask { + position: relative; margin-left: $large-offset; margin-right: $large-offset; margin-top: $large-offset; @@ -95,6 +103,7 @@ import { mapGetters } from "vuex"; import { HTTP } from "../application/lib/http.js"; import { displayError } from "../application/lib/errors.js"; +import { version } from "../../package.json"; const UNAUTHORIZED = 401; @@ -109,7 +118,8 @@ passwordJustResetted: false, readablePassword: false, showPasswordReset: false, - usernameToReset: "" + usernameToReset: "", + version: version }; }, computed: {