Added deemix version in about tab

Adds #41
This commit is contained in:
RemixDev 2020-09-07 11:49:39 +02:00
parent ea7f80e6aa
commit 39f92391dc
4 changed files with 11 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,7 @@
<h2 class="page_heading">{{ $t('sidebar.about') }}</h2>
<ul>
<li>{{ $t('about.updates.currentVersion') }}: <span v-if="current">{{ current }}</span><span v-else>{{ $t('about.updates.versionNotAvailable') }}</span></li>
<li>{{ $t('about.updates.deemixVersion') }}: {{ deemixVersion }}</li>
<li v-if="updateAvailable && latest">{{ $t('about.updates.updateAvailable', {version: latest}) }}</li>
</ul>
@ -206,14 +207,16 @@ export default {
ethereum,
current: null,
latest: null,
updateAvailable: false
updateAvailable: false,
deemixVersion: null
}),
methods: {
initUpdate(data){
const { currentCommit, latestCommit, updateAvailable } = data
const { currentCommit, latestCommit, updateAvailable, deemixVersion } = data
this.current = currentCommit
this.latest = latestCommit
this.updateAvailable = updateAvailable
this.deemixVersion = deemixVersion
}
},
mounted() {

View File

@ -44,7 +44,8 @@ const en = {
updates: {
currentVersion: 'Current Version',
versionNotAvailable: 'N/A',
updateAvailable: `You're not running the latest version available: {version}`
updateAvailable: `You're not running the latest version available: {version}`,
deemixVersion: 'deemix lib version'
},
titles: {
usefulLinks: 'Useful Links',

View File

@ -44,7 +44,8 @@ const it = {
updates: {
currentVersion: 'Versione corrente',
versionNotAvailable: 'N/A',
updateAvailable: `Non stai usando l'ultima versione disponibile: {version}`
updateAvailable: `Non stai usando l'ultima versione disponibile: {version}`,
deemixVersion: 'Versione libreria deemix'
},
titles: {
usefulLinks: 'Link Utili',