mirror of
https://github.com/paperdash/device-epd.git
synced 2024-11-04 12:00:27 +00:00
bugfix, wrong version was shown
This commit is contained in:
parent
7f735d21c6
commit
f3a933a508
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user