Fixed bug with editing event
This commit is contained in:
parent
edf4c10c71
commit
dc8dae9d19
@ -27,6 +27,9 @@ class LocationEditController: FormViewController {
|
|||||||
}.onChange { row in
|
}.onChange { row in
|
||||||
if let newDate = row.value {
|
if let newDate = row.value {
|
||||||
self.date = newDate
|
self.date = newDate
|
||||||
|
self.doneButton.isEnabled = true
|
||||||
|
} else {
|
||||||
|
self.doneButton.isEnabled = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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: ""))
|
+++ Section(NSLocalizedString("Debug", comment: ""))
|
||||||
<<< SwitchRow() { row in
|
<<< SwitchRow() { row in
|
||||||
row.title = NSLocalizedString("Show debug info", comment: "")
|
row.title = NSLocalizedString("Show debug info", comment: "")
|
||||||
row.value = Settings.shared.showDebugInfos
|
row.value = Settings.shared.showDebugInfo
|
||||||
}.onChange { row in
|
}.onChange { row in
|
||||||
if let val = row.value {
|
if let val = row.value {
|
||||||
Settings.shared.showDebugInfo = val
|
Settings.shared.showDebugInfo = val
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
+++ Section("")
|
||||||
|
<<< ButtonRow("SignOut") { $0.title = NSLocalizedString("Sign Out", comment: "") }.onCellSelection { cell, row in
|
||||||
|
self.logout()
|
||||||
|
}
|
||||||
|
|
||||||
#if targetEnvironment(macCatalyst)
|
#if targetEnvironment(macCatalyst)
|
||||||
if let beepSection = self.form.sectionBy(tag: "BeepRecordSection") {
|
if let beepSection = self.form.sectionBy(tag: "BeepRecordSection") {
|
||||||
beepSection.hidden = true
|
beepSection.hidden = true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user