Removed empty selector if no monitor available

This commit is contained in:
Mawoka 2021-09-22 19:25:33 +02:00 committed by Nelson Chan
parent 6f352a6e3c
commit 69bb6ef290

View file

@ -175,10 +175,12 @@
</div>
<div class="mt-3">
<label>{{ $t("Add a monitor") }}:</label>
<select v-model="selectedMonitor" class="form-control">
<option v-for="monitor in allMonitorList" :key="monitor.id" :value="monitor">{{ monitor.name }}</option>
</select>
<div v-if="allMonitorList.length > 0 && loadedData">
<label>{{ $t("Add a monitor") }}:</label>
<select v-model="selectedMonitor" class="form-control">
<option v-for="monitor in allMonitorList" :key="monitor.id" :value="monitor">{{ monitor.name }}</option>
</select>
</div>
</div>
</div>