bugfix, wrong version was shown

This commit is contained in:
Thomas Ballmann 2020-12-26 19:38:01 +01:00
parent 7f735d21c6
commit f3a933a508

View File

@ -49,9 +49,8 @@
outlined
type="info"
>
Update: {{ updateType }}<br>
Version: {{ file.lastModifiedDate.toLocaleString() }}<br>
Current: {{ currentApp.toLocaleString() }}<br>
{{ updateType }}: {{ file.lastModifiedDate.toLocaleString() }}<br>
<small>Current: {{ currentVersion.toLocaleString() }}</small>
</v-alert>
</v-card-text>
<v-card-text v-else-if="file">
@ -174,6 +173,17 @@
}
return null
},
currentVersion () {
if (this.file) {
switch (this.file.name) {
case 'firmware.bin':
return this.currentFirmware
case 'spiffs.bin':
return this.currentApp
}
}
return null
},
},
methods: {
onSystemUpdate () {