mirror of
https://github.com/neon443/ShhShell.git
synced 2026-11-30 12:44:51 +00:00
tiny change
This commit is contained in:
2 files changed
+19
-17
No files matched your search
@@ -46,24 +46,26 @@ struct KeyDetailView: View {
|
||||
.buttonStyle(.plain)
|
||||
}
|
||||
}
|
||||
Menu() {
|
||||
ForEach(hostsManager.hostsNotUsing(key: keypair)) { host in
|
||||
Button() {
|
||||
hostsManager.set(keypair: keypair, onHost: host)
|
||||
} label: {
|
||||
host.symbol.image
|
||||
.resizable().scaledToFit()
|
||||
.foregroundStyle(.blue)
|
||||
.frame(width: 20, height: 20)
|
||||
Text(host.description)
|
||||
.foregroundStyle(.blue)
|
||||
if !hostsManager.hosts.isEmpty {
|
||||
Menu() {
|
||||
ForEach(hostsManager.hostsNotUsing(key: keypair)) { host in
|
||||
Button() {
|
||||
hostsManager.set(keypair: keypair, onHost: host)
|
||||
} label: {
|
||||
host.symbol.image
|
||||
.resizable().scaledToFit()
|
||||
.foregroundStyle(.blue)
|
||||
.frame(width: 20, height: 20)
|
||||
Text(host.description)
|
||||
.foregroundStyle(.blue)
|
||||
}
|
||||
}
|
||||
} label: {
|
||||
Image(systemName: "plus.circle.fill")
|
||||
.symbolRenderingMode(.multicolor)
|
||||
Text("Add")
|
||||
.foregroundStyle(.green)
|
||||
}
|
||||
} label: {
|
||||
Image(systemName: "plus.circle.fill")
|
||||
.symbolRenderingMode(.multicolor)
|
||||
Text("Add")
|
||||
.foregroundStyle(.green)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
Submodule SwiftTerm updated: cdace6f038...3ed94f8117.