diff --git a/src/runtime/components/editor/pathway-editor.vue b/src/runtime/components/editor/pathway-editor.vue index 3c2547f..4933fb4 100644 --- a/src/runtime/components/editor/pathway-editor.vue +++ b/src/runtime/components/editor/pathway-editor.vue @@ -179,7 +179,7 @@ export default { }, watch: { 'pathway.pathway_mode' (value) { - if (value === 6 || value === 7) { + if (value === 7) { this.pathway.is_bidirectional = 0 } else { this.pathway.is_bidirectional = 1 diff --git a/src/runtime/components/editor/station-validator.vue b/src/runtime/components/editor/station-validator.vue index d79e54c..fe7f03e 100644 --- a/src/runtime/components/editor/station-validator.vue +++ b/src/runtime/components/editor/station-validator.vue @@ -329,11 +329,11 @@ export default { message: 'Pathway is a loop - from_stop_id cannot equal to_stop_id' }) } - // if ((pathway.pathway_mode === 6 || pathway.pathway_mode === 7) && pathway.is_bidirectional === 1) { - // errs.push({ - // message: 'Fare-gate and exit-gate pathways must be one-way' - // }) - // } + if (pathway.pathway_mode === 7 && pathway.is_bidirectional === 1) { + errs.push({ + message: 'Exit-gate pathways must be one-way' + }) + } if (pathway.pathway_mode === 2 && pathway.stair_count == null) { if (pathway.from_stop.level?.id !== pathway.to_stop.level?.id) { // ok