settings: Can disable all submission button for maintenance

This commit is contained in:
nemunaire 2022-06-08 04:39:20 +02:00
parent 329bd246c7
commit e9dd35f8ac
9 changed files with 41 additions and 10 deletions

View file

@ -77,6 +77,8 @@ type Settings struct {
DisplayMCQBadCount bool `json:"displayMCQBadCount,omitempty"`
// EventKindness will ask browsers to delay notification interval.
EventKindness bool `json:"eventKindness,omitempty"`
// DisableSubmitButton replace button by this text (eg. scheduled updates, ...).
DisableSubmitButton string `json:"disablesubmitbutton,omitempty"`
}
// ExistsSettings checks if the settings file can by found at the given path.