Commit ae22a3dc authored by Volker Krause's avatar Volker Krause

Use the timeline delegate controller for the details page too

Might need a better name now. This fixes live data not updating correctly.
parent f38e71d7
......@@ -26,7 +26,7 @@ import "." as App
Kirigami.ScrollablePage {
id: root
/** The reservation batch identifier (@see ReservationManager). */
property var batchId
property alias batchId: controller.batchId
/** Currently selected reservation of the batch. */
property var currentReservationId: batchId
/** @deprecated */
......@@ -36,6 +36,14 @@ Kirigami.ScrollablePage {
property var editor
readonly property string passId: _pkpassManager.passId(reservation)
TimelineDelegateController {
id: controller
reservationManager: _reservationManager
liveDataManager: _liveDataManager
property alias arrival: controller.arrival
property alias departure: controller.departure
Kirigami.OverlaySheet {
id: deleteWarningSheet
......@@ -26,8 +26,6 @@ import "." as App
App.DetailsPage {
id: root
title: i18n("Train Ticket")
property var arrival: _liveDataManager.arrival(batchId)
property var departure: _liveDataManager.departure(batchId)
Component {
id: alternativePage
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment