mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-08-01 18:29:02 -04:00
refactor: mark the announcement config as output-only (yaml:"-")
The announcement is runtime-managed and injected into config.json; it is not a static yaml config option. Exclude it from yaml (yaml:"-") so it is not presented as a configurable knob, keeping the json tag only for the config.json output.
This commit is contained in:
@@ -2,7 +2,7 @@ package config
|
||||
|
||||
// Options are the option for the web
|
||||
type Options struct {
|
||||
Announcement *Announcement `json:"announcement,omitempty" yaml:"announcement"`
|
||||
Announcement *Announcement `json:"announcement,omitempty" yaml:"-"`
|
||||
AccountEditLink *AccountEditLink `json:"accountEditLink,omitempty" yaml:"accountEditLink"`
|
||||
DisableFeedbackLink bool `json:"disableFeedbackLink,omitempty" yaml:"disableFeedbackLink" env:"WEB_OPTION_DISABLE_FEEDBACK_LINK" desc:"Set this option to 'true' to disable the feedback link in the top bar. Keeping it enabled by setting the value to 'false' or with the absence of the option, allows OpenCloud to get feedback from your user base through a dedicated survey website." introductionVersion:"1.0.0"`
|
||||
DisableSponsorLink bool `json:"disableSponsorLink,omitempty" yaml:"disableSponsorLink" env:"WEB_OPTION_DISABLE_SPONSOR_LINK" desc:"Set this option to 'true' to disable the sponsor link in the left sidebar. Keeping it enabled by setting the value to 'false' or by leaving the option unset allows OpenCloud to get support from the community through a dedicated sponsorship program on GitHub." introductionVersion:"7.3.0"`
|
||||
@@ -29,9 +29,9 @@ type Options struct {
|
||||
// value configured statically is ignored.
|
||||
type Announcement struct {
|
||||
// BannerText is the short line shown in the banner.
|
||||
BannerText string `json:"bannerText,omitempty" yaml:"bannerText"`
|
||||
BannerText string `json:"bannerText,omitempty" yaml:"-"`
|
||||
// InfoText is the (Markdown) detail shown in a dialog when the banner is clicked.
|
||||
InfoText string `json:"infoText,omitempty" yaml:"infoText"`
|
||||
InfoText string `json:"infoText,omitempty" yaml:"-"`
|
||||
}
|
||||
|
||||
// AccountEditLink are the AccountEditLink options
|
||||
|
||||
Reference in New Issue
Block a user