diff --git a/services/web/pkg/config/defaults/defaultconfig.go b/services/web/pkg/config/defaults/defaultconfig.go index 8fad92be507..13ddeb82075 100644 --- a/services/web/pkg/config/defaults/defaultconfig.go +++ b/services/web/pkg/config/defaults/defaultconfig.go @@ -127,6 +127,7 @@ func DefaultConfig() *config.Config { }, Sidebar: config.Sidebar{ Shares: config.SidebarShares{}, + Exif: config.SidebarExif{}, }, Upload: &config.Upload{}, OpenLinksWithDefaultApp: true, diff --git a/services/web/pkg/config/options.go b/services/web/pkg/config/options.go index 9d011c9ed01..d54290ced2e 100644 --- a/services/web/pkg/config/options.go +++ b/services/web/pkg/config/options.go @@ -43,6 +43,7 @@ type FeedbackLink struct { // Sidebar are the sidebar option type Sidebar struct { Shares SidebarShares `json:"shares" yaml:"shares"` + Exif SidebarExif `json:"exif" yaml:"exif"` } // SidebarShares are the options for the shares sidebar @@ -50,6 +51,10 @@ type SidebarShares struct { ShowAllOnLoad bool `json:"showAllOnLoad" yaml:"showAllOnLoad" env:"WEB_OPTION_SIDEBAR_SHARES_SHOW_ALL_ON_LOAD" desc:"Sets the list of the (link) shares list in the sidebar to be initially expanded. Default is a collapsed state, only showing the first three shares." introductionVersion:"pre5.0"` } +type SidebarExif struct { + ShowLocation bool `json:"showLocation" yaml:"showLocation" env:"WEB_OPTION_SIDEBAR_EXIF_SHOW_LOCATION" desc:"Shows the location data in the EXIF sidebar panel. Default is the location data being shown." introductionVersion:"6.0"` +} + // Routing are the routing options type Routing struct { IDBased bool `json:"idBased" yaml:"idBased" env:"WEB_OPTION_ROUTING_ID_BASED" desc:"Enable or disable fileIds being added to the URL. Defaults to 'true', because otherwise spaces with name clashes cannot be resolved correctly. Note: Only disable this if you can guarantee on the server side, that spaces of the same namespace cannot have name clashes." introductionVersion:"pre5.0"`