show details in ssh key setting
This commit is contained in:
parent
2487b23a10
commit
6307d320d2
1 changed files with 6 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ class PasswordRepositorySettingsTableViewController: BasicStaticTableViewControl
|
||||||
let url = Defaults[.gitRepositoryURL]?.host
|
let url = Defaults[.gitRepositoryURL]?.host
|
||||||
tableData = [
|
tableData = [
|
||||||
[[.style: CellDataStyle.value1, .title: "Git Server", .action: "segue", .link: "showGitServerSettingSegue", .detailText: url ?? ""],
|
[[.style: CellDataStyle.value1, .title: "Git Server", .action: "segue", .link: "showGitServerSettingSegue", .detailText: url ?? ""],
|
||||||
[.title: "SSH Key", .action: "segue", .link: "showSSHKeySettingSegue"],],
|
[.style: CellDataStyle.value1, .title: "SSH Key", .action: "segue", .link: "showSSHKeySettingSegue", .detailText: "Not Set"],],
|
||||||
]
|
]
|
||||||
navigationItemTitle = "Repository"
|
navigationItemTitle = "Repository"
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
|
@ -28,6 +28,11 @@ class PasswordRepositorySettingsTableViewController: BasicStaticTableViewControl
|
||||||
cell.detailTextLabel!.text = url.host
|
cell.detailTextLabel!.text = url.host
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if Defaults[.gitRepositorySSHPublicKeyURL] != nil {
|
||||||
|
if let cell = tableView.cellForRow(at: IndexPath(row: 1, section: 0)) {
|
||||||
|
cell.detailTextLabel!.text = "Set"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue