We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d2d2bb commit 3bae2c8Copy full SHA for 3bae2c8
1 file changed
TableProMobile/TableProMobile/Views/ConnectedTabView.swift
@@ -65,8 +65,19 @@ struct ConnectedTabView: View {
65
}
66
.frame(maxWidth: .infinity, maxHeight: .infinity)
67
} else if let appError {
68
- ErrorView(error: appError) {
69
- await connect()
+ NavigationStack {
+ ErrorView(error: appError) {
70
+ await connect()
71
+ }
72
+ .navigationTitle(displayName)
73
+ .navigationBarTitleDisplayMode(.inline)
74
+ .toolbar {
75
+ ToolbarItem(placement: .cancellationAction) {
76
+ Button(String(localized: "Close")) {
77
+ appState.activeConnection = nil
78
79
80
81
82
} else {
83
tabContent
0 commit comments