Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
Forgot to run lint: fix. That has been done now as well
Browse files Browse the repository at this point in the history
  • Loading branch information
AdPat-Redlink committed Feb 2, 2024
1 parent 63a73e8 commit 1389552
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/components/shared/RelativeScheduler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
} from '../../generated-sources/openapi';
import { useI18n } from 'vue-i18n';
import { MoreTableChoice } from '../../models/MoreTableModel';
import {expectTypeOf} from "vitest";
const { t } = useI18n();
const dialogRef: any = inject('dialogRef');
Expand Down Expand Up @@ -168,24 +167,27 @@
returnSchedule.value.dtend.offset?.value &&
returnSchedule.value.dtstart.offset?.value &&
returnSchedule.value.dtstart.offset?.value >
returnSchedule.value.dtend.offset?.value
returnSchedule.value.dtend.offset?.value
) {
errors.value.push({
label: 'dtend',
value: t('scheduler.dialog.relativeSchedule.error.dtend.EndBeforeStart'),
value: t(
'scheduler.dialog.relativeSchedule.error.dtend.EndBeforeStart'
),
});
}
if (
returnSchedule.value.dtstart.time &&
returnSchedule.value.dtend.time &&
(returnSchedule.value.dtstart.offset?.value ==
returnSchedule.value.dtend.offset?.value) &&
returnSchedule.value.dtstart.time >=
returnSchedule.value.dtend.time
returnSchedule.value.dtstart.offset?.value ===
returnSchedule.value.dtend.offset?.value &&
returnSchedule.value.dtstart.time >= returnSchedule.value.dtend.time
) {
errors.value.push({
label: 'dtend',
value: t('scheduler.dialog.relativeSchedule.error.dtend.EndBeforeStart'),
value: t(
'scheduler.dialog.relativeSchedule.error.dtend.EndBeforeStart'
),
});
}
if (repeatChecked.value) {
Expand Down

0 comments on commit 1389552

Please sign in to comment.