Don't show error symbol when loading unless error
This commit is contained in:
parent
2b8d08c78c
commit
a265656984
2 changed files with 9 additions and 4 deletions
|
|
@ -4,9 +4,9 @@
|
||||||
<div uk-spinner="ratio: 3"></div>
|
<div uk-spinner="ratio: 3"></div>
|
||||||
<p>Loading...</p>
|
<p>Loading...</p>
|
||||||
</div>
|
</div>
|
||||||
<span class="material-symbols-outlined uk-align-center error-icon">error_outline</span>
|
<div v-if="error" id="error-container" class="uk-align-center">
|
||||||
<div v-if="error" class="uk-align-center">
|
<span class="material-symbols-outlined uk-align-center error-icon">error_outline</span>
|
||||||
{{ error }}
|
<p>{{ error }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -26,6 +26,10 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
|
#error-container {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.error-icon {
|
.error-icon {
|
||||||
font-size: 120px;
|
font-size: 120px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,8 @@ export const useSettingsStore = defineStore(
|
||||||
function resetState() {
|
function resetState() {
|
||||||
waiting.value = false;
|
waiting.value = false;
|
||||||
available.value = false;
|
available.value = false;
|
||||||
error.value = ""; // TODO: verify that "" is needed to match initial state
|
// On resetState there is no connection.
|
||||||
|
error.value = "Microscope is not connected.";
|
||||||
}
|
}
|
||||||
|
|
||||||
function setConnected() {
|
function setConnected() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue