From 9a1cac006a80098f90f2febf751632c7e5ffbfa0 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 10 Jun 2020 14:19:35 +0200 Subject: setting page background color --- frontend/views/page/components/page.editor.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'frontend/views/page/components/page.editor.js') diff --git a/frontend/views/page/components/page.editor.js b/frontend/views/page/components/page.editor.js index 297f7e7..3878208 100644 --- a/frontend/views/page/components/page.editor.js +++ b/frontend/views/page/components/page.editor.js @@ -158,7 +158,7 @@ class PageEditor extends Component { } render(){ - if (!this.state.bounds) { + if (!this.state.bounds || !this.props.page.show.res) { return (
) @@ -167,8 +167,9 @@ class PageEditor extends Component { const currentTile = this.state.tile const currentBox = this.state.box const { res } = this.props.page.show - return ( -
+ const pageStyle = { backgroundColor: res.settings.background_color || '#000000' } + return ( +
{res.tiles.map(tile => { if (temporaryTile && temporaryTile.id === tile.id) { tile = temporaryTile -- cgit v1.2.3-70-g09d2