bugfix, wrong version was shown

pull/1/head
Thomas Ballmann 3 years ago
parent 7f735d21c6
commit f3a933a508

@ -49,9 +49,8 @@
outlined outlined
type="info" type="info"
> >
Update: {{ updateType }}<br> {{ updateType }}: {{ file.lastModifiedDate.toLocaleString() }}<br>
Version: {{ file.lastModifiedDate.toLocaleString() }}<br> <small>Current: {{ currentVersion.toLocaleString() }}</small>
Current: {{ currentApp.toLocaleString() }}<br>
</v-alert> </v-alert>
</v-card-text> </v-card-text>
<v-card-text v-else-if="file"> <v-card-text v-else-if="file">
@ -174,6 +173,17 @@
} }
return null 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: { methods: {
onSystemUpdate () { onSystemUpdate () {

Loading…
Cancel
Save