Skip to content

Commit c25a8a7

Browse files
committed
fix(create-database): show button in PG and remove duplicate parens
1 parent 12216ff commit c25a8a7

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

TablePro/Resources/Localizable.xcstrings

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17629,6 +17629,9 @@
1762917629
}
1763017630
}
1763117631
}
17632+
},
17633+
"Failed to load options" : {
17634+
1763217635
},
1763317636
"Failed to load plugin registry" : {
1763417637
"extractionState" : "stale",
@@ -23801,6 +23804,9 @@
2380123804
}
2380223805
}
2380323806
}
23807+
},
23808+
"Loading options..." : {
23809+
2380423810
},
2380523811
"Loading plugins..." : {
2380623812
"extractionState" : "stale",
@@ -40810,6 +40816,9 @@
4081040816
}
4081140817
}
4081240818
}
40819+
},
40820+
"This engine does not support creating databases." : {
40821+
4081340822
},
4081440823
"This file is encrypted" : {
4081540824
"localizations" : {

TablePro/Views/DatabaseSwitcher/CreateDatabaseSheet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ struct CreateDatabaseSheet: View {
212212

213213
private func displayLabel(for option: CreateDatabaseFormSpec.Option) -> String {
214214
guard let subtitle = option.subtitle, !subtitle.isEmpty else { return option.label }
215-
return "\(option.label) (\(subtitle))"
215+
return "\(option.label) \(subtitle)"
216216
}
217217

218218
private func load() async {

TablePro/Views/DatabaseSwitcher/DatabaseSwitcherSheet.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,6 @@ struct DatabaseSwitcherSheet: View {
401401
// MARK: - Actions
402402

403403
private func refreshCreateSupport() async {
404-
guard !isSchemaMode else { return }
405404
do {
406405
let spec = try await viewModel.loadCreateDatabaseForm()
407406
supportsCreateDatabase = spec != nil

0 commit comments

Comments
 (0)