Skip to content

Commit 630477d

Browse files
committed
Database level Info
1 parent bbf6d66 commit 630477d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

MMEX/Views/Info/InfoTableView.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,25 @@ struct InfoTableView: View {
1818
}
1919

2020
var body: some View {
21-
List {
21+
VStack {
2222
if let userVersion = repository.db?.userVersion {
2323
keyValueRow(key: "Schema Version", value: "\(userVersion)")
24+
Divider()
2425
}
2526

2627
if let baseCurrencyID = infoItems[.baseCurrencyID]?.getValue(Int.self) {
2728
keyValueRow(key: "Base Currency", value: "\(baseCurrencyID)")
29+
Divider()
2830
}
2931

3032
if let uid = infoItems[.uid]?.getValue(String.self) {
3133
keyValueRow(key: "UID", value: uid)
34+
Divider()
3235
}
3336

3437
if let dateFormat = infoItems[.dateFormat]?.getValue(String.self) {
3538
keyValueRow(key: "Date Format", value: dateFormat)
39+
Divider()
3640
}
3741
}
3842
.onAppear {

MMEX/Views/ManagementView.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@ struct ManagementView: View {
3030
Text("Manage Currencies")
3131
}
3232
}
33-
Section(header: Text("Manage Info")) {
34-
NavigationLink(destination: InfoTableView(databaseURL: databaseURL)) {
35-
Text("Per Database Info")
36-
}
33+
Section(header: Text("Database Level Info")) {
34+
InfoTableView(databaseURL: databaseURL)
3735
}
3836
Section(header: Text("Database")) {
3937
Button("Re-open Database") {

0 commit comments

Comments
 (0)