mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
fix(ui): start date should also be validated
This commit is contained in:
@@ -114,6 +114,11 @@ class SilenceFormStore {
|
||||
},
|
||||
|
||||
verifyStarEnd() {
|
||||
const now = moment().second(0);
|
||||
if (this.startsAt.isBefore(now)) {
|
||||
this.startsAt = now;
|
||||
}
|
||||
|
||||
if (this.endsAt.isSameOrBefore(this.startsAt)) {
|
||||
this.endsAt = moment(this.startsAt).add(1, "minutes");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user