Fix: Add placeholder if no monitors to add

This commit is contained in:
Nelson Chan 2021-09-24 16:51:53 +08:00 committed by GitHub
parent 69bb6ef290
commit d2af42e579
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -181,6 +181,9 @@
<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 v-else class="text-center">
{{ $t("No monitors available.") }} <router-link to="/add">{{ $t("Add one") }}</router-link>
</div>
</div> </div>
</div> </div>