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

View File

@ -44,7 +44,8 @@ const en = {
updates: { updates: {
currentVersion: 'Current Version', currentVersion: 'Current Version',
versionNotAvailable: 'N/A', 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: { titles: {
usefulLinks: 'Useful Links', usefulLinks: 'Useful Links',

View File

@ -44,7 +44,8 @@ const it = {
updates: { updates: {
currentVersion: 'Versione corrente', currentVersion: 'Versione corrente',
versionNotAvailable: 'N/A', 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: { titles: {
usefulLinks: 'Link Utili', usefulLinks: 'Link Utili',