@@ -90,51 +90,51 @@ final class IssueManagingContextController: NSObject, ContextMenuDelegate {
9090 }
9191
9292 func item( _ action: Action ) -> ContrastContextMenuItem {
93- let title : String
94- let iconName : String
95-
96- switch action {
97- case . labels:
98- title = Constants . Strings. labels
99- iconName = " tag "
100- case . milestone:
101- title = Constants . Strings. milestone
102- iconName = " milestone "
103- case . assignees:
104- title = Constants . Strings. assignees
105- iconName = " person "
106- case . reviewers:
107- title = Constants . Strings. reviewers
108- iconName = " reviewer "
109- case . unlock:
110- title = NSLocalizedString ( " Unlock " , comment: " " )
111- iconName = " key "
112- case . lock:
113- title = NSLocalizedString ( " Lock " , comment: " " )
114- iconName = " lock "
115- case . reopen:
116- title = Constants . Strings. reopen
117- iconName = " sync "
118- case . close:
119- title = Constants . Strings. close
120- iconName = " x "
121- }
122-
123- let separator : Bool
124- switch action {
125- case . reopen, . close: separator = true
126- default : separator = false
127- }
128-
129- let iconColor : UIColor
130- switch action {
131- case . close: iconColor = Styles . Colors. Red. medium. color
132- default : iconColor = Styles . Colors. Blue. medium. color
133- }
134-
135- return ContrastContextMenuItem ( title: title, iconName: iconName, iconColor: iconColor,
136- separator: separator, action: actionBlock ( action) )
137-
93+ let title : String
94+ let iconName : String
95+
96+ switch action {
97+ case . labels:
98+ title = Constants . Strings. labels
99+ iconName = " tag "
100+ case . milestone:
101+ title = Constants . Strings. milestone
102+ iconName = " milestone "
103+ case . assignees:
104+ title = Constants . Strings. assignees
105+ iconName = " person "
106+ case . reviewers:
107+ title = Constants . Strings. reviewers
108+ iconName = " reviewer "
109+ case . unlock:
110+ title = NSLocalizedString ( " Unlock " , comment: " " )
111+ iconName = " key "
112+ case . lock:
113+ title = NSLocalizedString ( " Lock " , comment: " " )
114+ iconName = " lock "
115+ case . reopen:
116+ title = Constants . Strings. reopen
117+ iconName = " sync "
118+ case . close:
119+ title = Constants . Strings. close
120+ iconName = " x "
121+ }
122+
123+ let separator : Bool
124+ switch action {
125+ case . reopen, . close: separator = true
126+ default : separator = false
127+ }
128+
129+ let iconColor : UIColor
130+ switch action {
131+ case . close: iconColor = Styles . Colors. Red. medium. color
132+ default : iconColor = Styles . Colors. Blue. medium. color
133+ }
134+
135+ return ContrastContextMenuItem ( title: title, iconName: iconName, iconColor: iconColor,
136+ separator: separator, action: actionBlock ( action) )
137+
138138 }
139139
140140 func actionBlock( _ action: Action ) -> ( ContrastContextMenu ) -> Void {
0 commit comments