From 3379d273a9b28d4a95bdcc34b9943039e95f7d5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=C5=BE=20Jerman?= Date: Sun, 2 Apr 2023 13:31:53 +0200 Subject: [PATCH] Add missing JSON tags to page layouts --- server/compose/types/page_layout.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/server/compose/types/page_layout.go b/server/compose/types/page_layout.go index cb6195fda..ac24f198f 100644 --- a/server/compose/types/page_layout.go +++ b/server/compose/types/page_layout.go @@ -67,8 +67,9 @@ type ( PageLayoutAction struct { ActionID uint64 `json:"actionID,string"` - Placement string - Meta any + Placement string `json:"placement"` + Meta any `json:"meta"` + Enabled bool `json:"enabled"` // Warning: value of this field is now handled via resource-translation facility // struct field is kept for the convenience for now since it allows us @@ -77,8 +78,8 @@ type ( // Kind and Params specify the action's behavior and the parameters it // can use for execution - Kind string - Params any + Kind string `json:"kind"` + Params any `json:"params"` } PageLayoutFilter struct {