add inter-section dependency for settings

Currently used to hide all email sections when [email]/method is blank
(disabled).
This commit is contained in:
Harvey Tindall
2021-01-31 18:50:04 +00:00
parent ce98b2eb5a
commit 456ef556b1
7 changed files with 136 additions and 126 deletions

View File

@@ -42,6 +42,9 @@ type PasswordReset struct {
}
func pwrMonitor(app *appContext, watcher *fsnotify.Watcher) {
if !emailEnabled {
return
}
for {
select {
case event, ok := <-watcher.Events: