Browse Source
Merge pull request #466 from chakflying/public-dashboard
[status-page] hide select if no monitors to add
remotes/Mikhail5555/master
Louis Lam
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
4 deletions
-
src/pages/StatusPage.vue
|
|
@ -175,11 +175,16 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="mt-3"> |
|
|
|
<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 v-else class="text-center"> |
|
|
|
{{ $t("No monitors available.") }} <router-link to="/add">{{ $t("Add one") }}</router-link> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="mb-4"> |
|
|
|