mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 07:14:04 +00:00
Removed empty selector if no monitor available
This commit is contained in:
parent
6f352a6e3c
commit
69bb6ef290
1 changed files with 6 additions and 4 deletions
|
@ -175,10 +175,12 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-3">
|
<div class="mt-3">
|
||||||
<label>{{ $t("Add a monitor") }}:</label>
|
<div v-if="allMonitorList.length > 0 && loadedData">
|
||||||
<select v-model="selectedMonitor" class="form-control">
|
<label>{{ $t("Add a monitor") }}:</label>
|
||||||
<option v-for="monitor in allMonitorList" :key="monitor.id" :value="monitor">{{ monitor.name }}</option>
|
<select v-model="selectedMonitor" class="form-control">
|
||||||
</select>
|
<option v-for="monitor in allMonitorList" :key="monitor.id" :value="monitor">{{ monitor.name }}</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue