summaryrefslogtreecommitdiff
path: root/system/admin/config/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/admin/config/config.go')
-rw-r--r--system/admin/config/config.go31
1 files changed, 28 insertions, 3 deletions
diff --git a/system/admin/config/config.go b/system/admin/config/config.go
index 791510e..cd27054 100644
--- a/system/admin/config/config.go
+++ b/system/admin/config/config.go
@@ -10,9 +10,11 @@ type Config struct {
content.Item
editor editor.Editor
- Name string `json:"name"`
- Domain string `json:"domain"`
- ClientSecret string `json:"client_secret"`
+ Name string `json:"name"`
+ Domain string `json:"domain"`
+ ClientSecret string `json:"client_secret"`
+ Etag string `json:"etag"`
+ CacheInvalidate []string `json:"-"`
}
// SetContentID partially implements editor.Editable
@@ -51,6 +53,29 @@ func (c *Config) MarshalEditor() ([]byte, error) {
"disabled": "true",
}),
},
+ editor.Field{
+ View: editor.Input("ClientSecret", c, map[string]string{
+ "type": "hidden",
+ }),
+ },
+ editor.Field{
+ View: editor.Input("Etag", c, map[string]string{
+ "label": "Etag Header (used for static asset cache)",
+ "disabled": "true",
+ }),
+ },
+ editor.Field{
+ View: editor.Input("Etag", c, map[string]string{
+ "type": "hidden",
+ }),
+ },
+ editor.Field{
+ View: editor.Checkbox("CacheInvalidate", c, map[string]string{
+ "label": "Invalidate cache on save",
+ }, map[string]string{
+ "cache": "invalidate",
+ }),
+ },
)
if err != nil {
return nil, err