Fixed bug with editing event

This commit is contained in:
Selim Mustafaev 2021-01-02 19:35:13 +03:00
parent edf4c10c71
commit dc8dae9d19
2 changed files with 9 additions and 6 deletions

View File

@ -27,6 +27,9 @@ class LocationEditController: FormViewController {
}.onChange { row in
if let newDate = row.value {
self.date = newDate
self.doneButton.isEnabled = true
} else {
self.doneButton.isEnabled = false
}
}

View File

@ -72,21 +72,21 @@ class SettingsController: FormViewController {
}
}
+++ Section("")
<<< ButtonRow("SignOut") { $0.title = NSLocalizedString("Sign Out", comment: "") }.onCellSelection { cell, row in
self.logout()
}
+++ Section(NSLocalizedString("Debug", comment: ""))
<<< SwitchRow() { row in
row.title = NSLocalizedString("Show debug info", comment: "")
row.value = Settings.shared.showDebugInfos
row.value = Settings.shared.showDebugInfo
}.onChange { row in
if let val = row.value {
Settings.shared.showDebugInfo = val
}
}
+++ Section("")
<<< ButtonRow("SignOut") { $0.title = NSLocalizedString("Sign Out", comment: "") }.onCellSelection { cell, row in
self.logout()
}
#if targetEnvironment(macCatalyst)
if let beepSection = self.form.sectionBy(tag: "BeepRecordSection") {
beepSection.hidden = true