@@ -15,7 +15,6 @@ class EventDetailViewController: CoachPlusViewController, UITableViewDelegate, U
15
15
case news = 0
16
16
case participation = 1
17
17
}
18
-
19
18
20
19
var event : Event ?
21
20
var news = [ News] ( )
@@ -46,8 +45,7 @@ class EventDetailViewController: CoachPlusViewController, UITableViewDelegate, U
46
45
47
46
override func viewDidLoad( ) {
48
47
super. viewDidLoad ( )
49
-
50
-
48
+
51
49
self . view. heroID = self . heroId
52
50
53
51
self . nameLbl. heroID = " \( self . heroId) /name "
@@ -61,9 +59,11 @@ class EventDetailViewController: CoachPlusViewController, UITableViewDelegate, U
61
59
if ( self . membership? . isCoach ( ) ) ! {
62
60
self . editBtn. setIcon ( icon: . googleMaterialDesign( . modeEdit) , iconSize: 20 , color: . coachPlusLightGrey, backgroundColor: . clear, forState: . normal)
63
61
self . sendReminderBtn. setIcon ( icon: . googleMaterialDesign( . alarm) , iconSize: 20 , color: . coachPlusLightGrey, backgroundColor: . clear, forState: . normal)
62
+ } else {
63
+ self . editBtn. isHidden = true
64
+ self . sendReminderBtn. isHidden = true
64
65
}
65
66
66
-
67
67
self . tableView. rowHeight = UITableViewAutomaticDimension
68
68
self . tableView. estimatedRowHeight = 70
69
69
@@ -73,7 +73,6 @@ class EventDetailViewController: CoachPlusViewController, UITableViewDelegate, U
73
73
}
74
74
75
75
override func viewWillAppear( _ animated: Bool ) {
76
-
77
76
super. viewWillAppear ( animated)
78
77
79
78
self . nameLbl. text = self . event? . name
@@ -88,11 +87,7 @@ class EventDetailViewController: CoachPlusViewController, UITableViewDelegate, U
88
87
}
89
88
self . descriptionLbl. text = description
90
89
91
-
92
90
self . locationLbl. text = self . event? . getLocationString ( )
93
-
94
-
95
-
96
91
}
97
92
98
93
func loadParticipations( ) {
0 commit comments