@@ -17,6 +17,7 @@ class ClientProfileCoordinator: BaseCoordinator {
17 let storyboard = UIStoryboard(name: "ClientList", bundle: nil)
17 let storyboard = UIStoryboard(name: "ClientList", bundle: nil)
18 let viewController = storyboard.instantiateViewController(withIdentifier: "ProfileTableViewController") as? ProfileTableViewController
18 let viewController = storyboard.instantiateViewController(withIdentifier: "ProfileTableViewController") as? ProfileTableViewController
19 viewController?.user = user
19 viewController?.user = user
20+ viewController?.coodinator = self
20 guard let vc = viewController else { return }
21 guard let vc = viewController else { return }
21 navigationController?.pushViewController(vc, animated: true)
22 navigationController?.pushViewController(vc, animated: true)
@@ -26,4 +27,16 @@ class ClientProfileCoordinator: BaseCoordinator {
26 func createReservation(forUserWithPhone phoneNumber: String) {
27 func createReservation(forUserWithPhone phoneNumber: String) {
31+ // Просмотр (и редактирование) брони
32+ func seeExistingReservation(data: ReservationWithUser) {
33+ let reservationCoordinator = AdminReservationEditingCoordinator(navigationController: navigationController)
34+ addDependency(reservationCoordinator)
35+ reservationCoordinator.reservationData = data
36+ reservationCoordinator.didEndFlow = { [weak self] in
37+ self?.removeDependency(reservationCoordinator)
38+ self?.navigationController?.popViewController(animated: true)
40+ reservationCoordinator.start()