feat: add deliver to jumphosts

This commit is contained in:
Kaede Akino committed 2026-10-18 20:46:45 +08:00
1 parent d7b76cb167
commit ed7ed758db
2 files changed
+8 -2

No files matched your search

@@ -141,8 +141,12 @@ struct MobileHostEditor: View {
HostTransportSection(host: $draft)
Section(AppStrings.Vault.routing.swiftUIKey) {
Picker(AppStrings.Vault.jumpHost.swiftUIKey, selection: $draft.jumpHostID) {
let jumpHosts = library.hosts.filter { $0.id != draft.id && $0.sshEnabled }
Text(AppStrings.Common.none).tag(UUID?.none)
ForEach(library.hosts.filter { $0.id != draft.id && $0.sshEnabled }) {
if !jumpHosts.isEmpty {
Divider()
}
ForEach(jumpHosts) {
Text($0.name).tag(Optional($0.id))
}
}
+3 -1
View File
@@ -260,7 +260,9 @@ struct HostEditorView: View {
Section(AppStrings.Vault.routing.swiftUIKey) {
Picker(AppStrings.Vault.jumpHost.swiftUIKey, selection: $draft.jumpHostID) {
Text(AppStrings.Common.none).tag(Host.ID?.none)
Divider()
if !jumpHostSections.isEmpty {
Divider()
}
ForEach(jumpHostSections) { section in
Section(section.title) {
ForEach(section.hosts) { host in