Added more information to version mismatch warning
This commit is contained in:
parent
66683fc7a0
commit
3d9354100c
1 changed files with 13 additions and 1 deletions
|
|
@ -69,6 +69,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { version } from 'punycode';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'paneConnect',
|
name: 'paneConnect',
|
||||||
|
|
@ -148,7 +149,18 @@ export default {
|
||||||
console.log(serverVersionMajor)
|
console.log(serverVersionMajor)
|
||||||
|
|
||||||
if ((serverVersion == undefined) || (serverVersionMajor != clientVersionMajor)) {
|
if ((serverVersion == undefined) || (serverVersionMajor != clientVersionMajor)) {
|
||||||
this.modalDialog("Version mismatch", "Client and microscope versions do not match. Consider updating your microscope software. Some functionality may currently be broken.", status='warning')
|
var versionWarning = `Client and microscope versions do not match.\
|
||||||
|
Consider updating your microscope software.\
|
||||||
|
Some functionality may currently be broken.<br><br> \
|
||||||
|
<b>Client version:</b> ${clientVersion}<br> \
|
||||||
|
<b>Server version:</b> ${serverVersion}<br><br>`
|
||||||
|
if (serverVersion < 1.1) {
|
||||||
|
versionWarning = versionWarning + "You may need to install a never server version on a clean SD card."
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
versionWarning = versionWarning + "Try running 'ofm upgrade' on your microscope."
|
||||||
|
}
|
||||||
|
this.modalDialog("Version mismatch", versionWarning, status='warning')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue