Browse Source

Show build version if set (#342)

community-link
Luke Childs 4 years ago
committed by GitHub
parent
commit
981a030ea9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/store/modules/system.js

6
src/store/modules/system.js

@ -93,7 +93,11 @@ const actions = {
async getVersion({ commit }) {
const data = await API.get(`${process.env.VUE_APP_MANAGER_API_URL}/v1/system/info`);
if (data && data.version) {
commit("setVersion", data.version);
let {version} = data;
if (data.build) {
version += `-build-${data.build}`;
}
commit("setVersion", version);
}
},
async getUnit({ commit }) {

Loading…
Cancel
Save