settings: Can display a global message on all pages

This commit is contained in:
nemunaire 2022-06-08 04:55:19 +02:00
parent e9dd35f8ac
commit 750db69b06
3 changed files with 34 additions and 0 deletions

View file

@ -79,6 +79,10 @@ type Settings struct {
EventKindness bool `json:"eventKindness,omitempty"`
// DisableSubmitButton replace button by this text (eg. scheduled updates, ...).
DisableSubmitButton string `json:"disablesubmitbutton,omitempty"`
// GlobalTopMessage display a message on top of each pages.
GlobalTopMessage string `json:"globaltopmessage,omitempty"`
// GlobalTopMessageVariant control the variant/color of the previous message.
GlobalTopMessageVariant string `json:"globaltopmessagevariant,omitempty"`
}
// ExistsSettings checks if the settings file can by found at the given path.