diff --git a/client/web/compose/src/components/PageBlocks/Configurator.vue b/client/web/compose/src/components/PageBlocks/Configurator.vue index 7184867e3..c5b9e49c3 100644 --- a/client/web/compose/src/components/PageBlocks/Configurator.vue +++ b/client/web/compose/src/components/PageBlocks/Configurator.vue @@ -96,6 +96,13 @@ > {{ $t('general.wrap') }} + + + {{ $t('general.border.show') }} +
@@ -36,6 +41,9 @@ export class PageBlock { wrap: { kind: 'card', }, + border: { + enabled: false, + }, } constructor (i?: PageBlockInput) { diff --git a/locale/en/corteza-webapp-compose/block.yaml b/locale/en/corteza-webapp-compose/block.yaml index 961ab77f6..2310d23d9 100644 --- a/locale/en/corteza-webapp-compose/block.yaml +++ b/locale/en/corteza-webapp-compose/block.yaml @@ -125,6 +125,8 @@ general: show: Show refresh button description: Setting value to 5 seconds or more enables auto-refresh rate: seconds + border: + show: Show border label: add: Add back: Back diff --git a/server/compose/types/page.go b/server/compose/types/page.go index 584ad0a4d..7e5b1fe9c 100644 --- a/server/compose/types/page.go +++ b/server/compose/types/page.go @@ -71,8 +71,9 @@ type ( } PageBlockStyle struct { - Variants map[string]string `json:"variants,omitempty"` - Wrap map[string]string `json:"wrap,omitempty"` + Variants map[string]string `json:"variants,omitempty"` + Wrap map[string]string `json:"wrap,omitempty"` + Border map[string]interface{} `json:"border,omitempty"` } PageButton struct {