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>
|
||||
<p>Loading...</p>
|
||||
</div>
|
||||
<span class="material-symbols-outlined uk-align-center error-icon">error_outline</span>
|
||||
<div v-if="error" class="uk-align-center">
|
||||
{{ error }}
|
||||
<div v-if="error" id="error-container" class="uk-align-center">
|
||||
<span class="material-symbols-outlined uk-align-center error-icon">error_outline</span>
|
||||
<p>{{ error }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -26,6 +26,10 @@ export default {
|
|||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
#error-container {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.error-icon {
|
||||
font-size: 120px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,8 @@ export const useSettingsStore = defineStore(
|
|||
function resetState() {
|
||||
waiting.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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue