File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {
15
15
} from "../data-structures/technical.data.structures" ;
16
16
import { TrainrunsectionValidator } from "../services/util/trainrunsection.validator" ;
17
17
import { formatDate } from "@angular/common" ;
18
+ import { environment } from "src/environments/environment" ;
18
19
19
20
export class TrainrunSection {
20
21
private static currentId = 0 ;
@@ -452,22 +453,27 @@ export class TrainrunSection {
452
453
}
453
454
454
455
hasTravelTimeWarning ( ) : boolean {
456
+ if ( environment . disableBackend ) return false ;
455
457
return this . travelTime . warning !== null ;
456
458
}
457
459
458
460
hasSourceDepartureWarning ( ) : boolean {
461
+ if ( environment . disableBackend ) return false ;
459
462
return this . sourceDeparture . warning !== null ;
460
463
}
461
464
462
465
hasSourceArrivalWarning ( ) : boolean {
466
+ if ( environment . disableBackend ) return false ;
463
467
return this . sourceArrival . warning !== null ;
464
468
}
465
469
466
470
hasTargetDepartureWarning ( ) : boolean {
471
+ if ( environment . disableBackend ) return false ;
467
472
return this . targetDeparture . warning !== null ;
468
473
}
469
474
470
475
hasTargetArrivalWarning ( ) : boolean {
476
+ if ( environment . disableBackend ) return false ;
471
477
return this . targetArrival . warning !== null ;
472
478
}
473
479
You can’t perform that action at this time.
0 commit comments