mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 07:14:04 +00:00
Slightly improve error check on maintenance edit page
This commit is contained in:
parent
d23cb0b382
commit
aa8454b73f
1 changed files with 4 additions and 5 deletions
|
@ -218,17 +218,17 @@
|
||||||
|
|
||||||
<!-- Date Range -->
|
<!-- Date Range -->
|
||||||
<div class="my-3">
|
<div class="my-3">
|
||||||
<label class="form-label">{{ $t("Effective Date Range") }}</label>
|
<label v-if="maintenance.strategy !== 'single'" class="form-label">{{ $t("Effective Date Range") }}</label>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="mb-2">{{ $t("startDateTime") }}</div>
|
<div class="mb-2">{{ $t("startDateTime") }}</div>
|
||||||
<input v-model="maintenance.dateRange[0]" type="datetime-local" class="form-control">
|
<input v-model="maintenance.dateRange[0]" type="datetime-local" class="form-control" :required="maintenance.strategy === 'single'">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="mb-2">{{ $t("endDateTime") }}</div>
|
<div class="mb-2">{{ $t("endDateTime") }}</div>
|
||||||
<input v-model="maintenance.dateRange[1]" type="datetime-local" class="form-control">
|
<input v-model="maintenance.dateRange[1]" type="datetime-local" class="form-control" :required="maintenance.strategy === 'single'">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -272,7 +272,6 @@ export default {
|
||||||
selectedStatusPages: [],
|
selectedStatusPages: [],
|
||||||
dark: (this.$root.theme === "dark"),
|
dark: (this.$root.theme === "dark"),
|
||||||
neverEnd: false,
|
neverEnd: false,
|
||||||
minDate: this.$root.date(dayjs()) + " 00:00",
|
|
||||||
lastDays: [
|
lastDays: [
|
||||||
{
|
{
|
||||||
langKey: "lastDay1",
|
langKey: "lastDay1",
|
||||||
|
@ -411,7 +410,7 @@ export default {
|
||||||
cron: "30 3 * * *",
|
cron: "30 3 * * *",
|
||||||
durationMinutes: 60,
|
durationMinutes: 60,
|
||||||
intervalDay: 1,
|
intervalDay: 1,
|
||||||
dateRange: [ this.minDate ],
|
dateRange: [],
|
||||||
timeRange: [{
|
timeRange: [{
|
||||||
hours: 2,
|
hours: 2,
|
||||||
minutes: 0,
|
minutes: 0,
|
||||||
|
|
Loading…
Reference in a new issue