summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-02-17 21:13:07 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-02-17 21:13:07 +0100
commitcc7439dd5e051904aa03e21a7a50bda106c43ae0 (patch)
tree8d0e84931ca4807ca53c61f38e6df7c5700b4433 /lib/Travelynx/Controller
parenta1865fa69e3a90e484e8423e256e1cb969b7e04d (diff)
handle departure cancellation after checkin
Diffstat (limited to 'lib/Travelynx/Controller')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm
index 7a9ab9e..59466f3 100755
--- a/lib/Travelynx/Controller/Traveling.pm
+++ b/lib/Travelynx/Controller/Traveling.pm
@@ -133,6 +133,10 @@ sub status_card {
if ( $status->{checked_in} ) {
$self->render( '_checked_in', journey => $status );
}
+ elsif ( $status->{cancellation} ) {
+ $self->render( '_cancelled_departure',
+ journey => $status->{cancellation} );
+ }
else {
$self->render( '_checked_out', journey => $status );
}