Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions common/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ type View struct {
Name string `json:"name" msgpack:"name"`
LayoutType string `json:"layout_type" msgpack:"layout_type"`
DefaultRequests []string `json:"default_requests" msgpack:"default_requests"`

// optional UI view settins: more exist on FE "LayoutOptions" but aren't all exposed via schema
FieldColumns int `json:"field_columns" msgpack:"field_columns"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oklex looks good, but if you want to omit the return values if there is no value lets do this and that should ensure we don't return a empty value to frontend

FieldColumns int json:"field_columns,omitempty" msgpack:"field_columns,omitempty"

}

// A request to get the schema required by the Extension for its configuration and requests.
Expand Down