Display the microscope's hostname in the interface
This commit is contained in:
parent
36a7ec3d2e
commit
674704b0d6
3 changed files with 17 additions and 1 deletions
|
|
@ -321,6 +321,13 @@ export default {
|
|||
);
|
||||
}
|
||||
}
|
||||
try {
|
||||
let hostname = await this.readThingProperty("settings", "hostname");
|
||||
this.$store.commit("changeMicroscopeHostname", hostname);
|
||||
document.title = `OpenFlexure Microscope: ${hostname}`;
|
||||
} catch {
|
||||
this.$store.commit("changeMicroscopeHostname", null);
|
||||
}
|
||||
this.$store.commit("setConnected");
|
||||
this.$store.commit("setErrorMessage", null);
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue