mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 16:54:04 +00:00
UI: Add help msg for no Group Mon.
This commit is contained in:
parent
8884c2108b
commit
de9ad0fe60
2 changed files with 4 additions and 2 deletions
|
@ -749,5 +749,6 @@
|
||||||
"Badge value (For Testing only.)": "Badge value (For Testing only.)",
|
"Badge value (For Testing only.)": "Badge value (For Testing only.)",
|
||||||
"Badge URL": "Badge URL",
|
"Badge URL": "Badge URL",
|
||||||
"Group": "Group",
|
"Group": "Group",
|
||||||
"Monitor Group": "Monitor Group"
|
"Monitor Group": "Monitor Group",
|
||||||
|
"noGroupMonitorMsg": "Not Available. Create a Group Monitor First."
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,7 +96,8 @@
|
||||||
<div class="my-3">
|
<div class="my-3">
|
||||||
<label for="parent" class="form-label">{{ $t("Monitor Group") }}</label>
|
<label for="parent" class="form-label">{{ $t("Monitor Group") }}</label>
|
||||||
<select v-model="monitor.parent" class="form-select" :disabled="sortedMonitorList.length === 0">
|
<select v-model="monitor.parent" class="form-select" :disabled="sortedMonitorList.length === 0">
|
||||||
<option :value="null" selected>{{ $t("None") }}</option>
|
<option v-if="sortedMonitorList.length === 0" :value="null" selected>{{ $t("noGroupMonitorMsg") }}</option>
|
||||||
|
<option v-else :value="null" selected>{{ $t("None") }}</option>
|
||||||
<option v-for="parentMonitor in sortedMonitorList" :key="parentMonitor.id" :value="parentMonitor.id">{{ parentMonitor.pathName }}</option>
|
<option v-for="parentMonitor in sortedMonitorList" :key="parentMonitor.id" :value="parentMonitor.id">{{ parentMonitor.pathName }}</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue