Hide connections page by default since unstable
This commit is contained in:
@@ -8,7 +8,6 @@ public struct ConnectionListView: View {
|
||||
@State private var isLoading = true
|
||||
@StateObject private var commandClient = CommandClient(.connections)
|
||||
@State private var connections: [Connection] = []
|
||||
@State private var selection: ConnectionListPage = .active
|
||||
@State private var searchText = ""
|
||||
@State private var alert: Alert?
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ public struct ConnectionView: View {
|
||||
Spacer()
|
||||
VStack(alignment: .trailing) {
|
||||
Text(connection.inboundType + "/" + connection.inbound)
|
||||
Text(connection.chain.reversed().joined(separator: "/"))
|
||||
Text(connection.chain[0])
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -111,7 +111,7 @@ public struct ConnectionView: View {
|
||||
|
||||
private nonisolated func closeConnection() async {
|
||||
do {
|
||||
try LibboxNewStandaloneCommandClient()!.closeConnection(connection.id)
|
||||
try await LibboxNewStandaloneCommandClient()!.closeConnection(connection.id)
|
||||
} catch {
|
||||
await MainActor.run {
|
||||
alert = Alert(error)
|
||||
|
||||
Reference in New Issue
Block a user