chore: Display app version on settings/admin area
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user