Hide "Edit" in provider profiles
This commit is contained in:
parent
860750332f
commit
2525467fe9
|
@ -35,10 +35,12 @@ class ServiceViewController: UIViewController, TableModelHost {
|
|||
|
||||
@IBOutlet private weak var labelWelcome: UILabel!
|
||||
|
||||
@IBOutlet private weak var itemEdit: UIBarButtonItem!
|
||||
|
||||
var profile: ConnectionProfile? {
|
||||
didSet {
|
||||
title = profile?.id
|
||||
navigationItem.rightBarButtonItem?.isEnabled = (profile?.context == .host)
|
||||
navigationItem.rightBarButtonItem = (profile?.context == .host) ? itemEdit : nil
|
||||
reloadModel()
|
||||
updateViewsIfNeeded()
|
||||
}
|
||||
|
|
|
@ -223,6 +223,7 @@
|
|||
</barButtonItem>
|
||||
</navigationItem>
|
||||
<connections>
|
||||
<outlet property="itemEdit" destination="gbN-fY-AoW" id="DGl-oS-ZSe"/>
|
||||
<outlet property="labelWelcome" destination="jEt-mV-gjN" id="kaN-fX-eRE"/>
|
||||
<outlet property="tableView" destination="14D-an-pBY" id="qzB-YR-Pss"/>
|
||||
<outlet property="viewWelcome" destination="p0F-IK-RD6" id="pGB-3J-Rwj"/>
|
||||
|
|
Loading…
Reference in New Issue