diff options
| author | Zog | 2018-04-04 16:59:10 +0200 |
|---|---|---|
| committer | Zog | 2018-04-04 17:00:35 +0200 |
| commit | bd475af5453a0215d249e7a4b662e1334ed033a2 (patch) | |
| tree | 4471913a4a15bbaf445f512ac3ea8cdfc623d2d7 | |
| parent | 3bb7934e1c69c42597239611f0870abde5ef5626 (diff) | |
| download | chouette-core-bd475af5453a0215d249e7a4b662e1334ed033a2.tar.bz2 | |
Refs #6405; Allow for Timetables & Calendars without periods6405-allow-timtables-without-periods
| -rw-r--r-- | app/javascript/time_tables/actions/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/javascript/time_tables/actions/index.js b/app/javascript/time_tables/actions/index.js index 3127d11b8..7c79dfe52 100644 --- a/app/javascript/time_tables/actions/index.js +++ b/app/javascript/time_tables/actions/index.js @@ -306,10 +306,11 @@ const actions = { }) }, errorModalKey: (periods, dayTypes) => { - const withoutPeriodsWithDaysTypes = reject(periods, 'deleted').length == 0 && some(dayTypes) && "withoutPeriodsWithDaysTypes" + // const withoutPeriodsWithDaysTypes = reject(periods, 'deleted').length == 0 && some(dayTypes) && "withoutPeriodsWithDaysTypes" const withPeriodsWithoutDayTypes = reject(periods, 'deleted').length > 0 && every(dayTypes, dt => dt == false) && "withPeriodsWithoutDayTypes" - return (withoutPeriodsWithDaysTypes || withPeriodsWithoutDayTypes) && (withoutPeriodsWithDaysTypes ? "withoutPeriodsWithDaysTypes" : "withPeriodsWithoutDayTypes") + // return (withoutPeriodsWithDaysTypes || withPeriodsWithoutDayTypes) && (withoutPeriodsWithDaysTypes ? "withoutPeriodsWithDaysTypes" : "withPeriodsWithoutDayTypes") + return withPeriodsWithoutDayTypes }, errorModalMessage: (errorKey) => { |
