@@ -10,7 +10,7 @@ import dayjs, { Dayjs } from 'dayjs/esm';
10
10
import { TranslateService } from '@ngx-translate/core' ;
11
11
import { TranslateDirective } from 'app/shared/language/translate.directive' ;
12
12
import { getCurrentLocaleSignal } from 'app/shared/util/global.utils' ;
13
- import { addOneMinuteTo , isFirstAfterOrEqualSecond } from 'app/lecture/manage/ util/lecture-management .utils' ;
13
+ import { addOneMinuteTo , isFirstDateAfterOrEqualSecond } from 'app/shared/ util/date .utils' ;
14
14
15
15
@Component ( {
16
16
selector : 'jhi-lecture-series-edit-modal' ,
@@ -28,10 +28,10 @@ export class LectureSeriesEditModalComponent {
28
28
visibleDate = signal < Date | undefined > ( undefined ) ;
29
29
startDate = signal < Date | undefined > ( undefined ) ;
30
30
minimumStartDate = computed ( ( ) => addOneMinuteTo ( this . visibleDate ( ) ) ) ;
31
- isStartDateInvalid = computed ( ( ) => isFirstAfterOrEqualSecond ( this . visibleDate ( ) , this . startDate ( ) ) ) ;
31
+ isStartDateInvalid = computed ( ( ) => isFirstDateAfterOrEqualSecond ( this . visibleDate ( ) , this . startDate ( ) ) ) ;
32
32
endDate = signal < Date | undefined > ( undefined ) ;
33
33
minimumEndDate = computed ( ( ) => addOneMinuteTo ( this . startDate ( ) ) ?? addOneMinuteTo ( this . visibleDate ( ) ) ) ;
34
- isEndDateInvalid = computed ( ( ) => isFirstAfterOrEqualSecond ( this . visibleDate ( ) , this . endDate ( ) ) || isFirstAfterOrEqualSecond ( this . startDate ( ) , this . endDate ( ) ) ) ;
34
+ isEndDateInvalid = computed ( ( ) => isFirstDateAfterOrEqualSecond ( this . visibleDate ( ) , this . endDate ( ) ) || isFirstDateAfterOrEqualSecond ( this . startDate ( ) , this . endDate ( ) ) ) ;
35
35
show = signal < boolean > ( false ) ;
36
36
areInputsInvalid = computed ( ( ) => this . isTitleInvalid ( ) || this . isStartDateInvalid ( ) || this . isEndDateInvalid ( ) ) ;
37
37
headerTitle = computed < string > ( ( ) => {
0 commit comments