chore: Display app version on settings/admin area

This commit is contained in:
Pranav Raj Sreepuram
2020-07-26 21:50:59 +05:30
parent 703027b834
commit f30c8943d9
7 changed files with 34 additions and 9 deletions

View File

@@ -64,6 +64,10 @@
</label>
</div>
</div>
<div class="current-version">
{{ `v${globalConfig.appVersion}` }}
</div>
<woot-submit-button
class="button nice success button--fixed-right-top"
:button-text="$t('GENERAL_SETTINGS.SUBMIT')"
@@ -106,6 +110,7 @@ export default {
},
computed: {
...mapGetters({
globalConfig: 'globalConfig/get',
getAccount: 'accounts/getAccount',
uiFlags: 'accounts/getUIFlags',
}),
@@ -196,4 +201,10 @@ export default {
padding: $space-normal;
}
}
.current-version {
font-size: var(--font-size-small);
text-align: center;
padding: var(--space-normal);
}
</style>

View File

@@ -1,4 +1,5 @@
const {
APP_VERSION: appVersion,
CREATE_NEW_ACCOUNT_FROM_DASHBOARD: createNewAccountFromDashboard,
INSTALLATION_NAME: installationName,
LOGO_THUMBNAIL: logoThumbnail,
@@ -9,6 +10,7 @@ const {
} = window.globalConfig;
const state = {
appVersion,
createNewAccountFromDashboard,
installationName,
logo,