Removed empty selector if no monitor available

pull/466/head
Mawoka 3 years ago committed by Nelson Chan
parent 6f352a6e3c
commit 69bb6ef290

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

Loading…
Cancel
Save