Skip to content

Commit 41d307e

Browse files
author
Maurice Breit
committed
team overview: see all
1 parent 4833268 commit 41d307e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

CoachPlus/app/team/TeamViewController.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,17 @@ class TeamViewController: CoachPlusViewController, UITableViewDelegate, UITableV
148148
return count + 1
149149
}
150150

151-
return 1
151+
return 2
152152
}
153153

154154
func eventRowType(_ indexPath:IndexPath) -> EventRowType {
155155
guard self.hasEvents() else {
156-
return .empty
156+
if (indexPath.row == 0) {
157+
return .empty
158+
} else {
159+
return .seeAll
160+
}
161+
157162
}
158163
guard indexPath.row < self.numberOfEventRows()-1 else {
159164
return .seeAll

0 commit comments

Comments
 (0)