Browse Source

do not display anything below the Analytic Status if analytic is not available

pull/91/head
rozetko 2 years ago
parent
commit
4ed8ba1193
  1. 6
      client/src/views/Home.vue

6
client/src/views/Home.vue

@ -4,6 +4,8 @@
<graph ref="graph" /> <graph ref="graph" />
<analytic-status /> <analytic-status />
<template v-if="analyticStatus.available">
<div> <div>
Analytic unit type: Analytic unit type:
<select :value="analyticUnitType" @change="changeAnalyticUnitType"> <select :value="analyticUnitType" @change="changeAnalyticUnitType">
@ -46,6 +48,7 @@
<br/> <br/>
</div> </div>
</div> </div>
</template>
</div> </div>
</template> </template>
@ -140,6 +143,9 @@ export default defineComponent({
}, },
analyticUnitConfig() { analyticUnitConfig() {
return this.$store.state.analyticUnitConfig; return this.$store.state.analyticUnitConfig;
},
analyticStatus() {
return this.$store.state.analyticStatus;
} }
} }
}); });

Loading…
Cancel
Save