From feb7d096db9f46361446f4c1f826ed96f60693f1 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Mon, 12 Oct 2020 21:21:23 +0100 Subject: [PATCH 1/2] replace list template screen with datagrid --- .../builderStore/store/screenTemplates/recordListScreen.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/builder/src/builderStore/store/screenTemplates/recordListScreen.js b/packages/builder/src/builderStore/store/screenTemplates/recordListScreen.js index 32f4d0696b..0210e7a85e 100644 --- a/packages/builder/src/builderStore/store/screenTemplates/recordListScreen.js +++ b/packages/builder/src/builderStore/store/screenTemplates/recordListScreen.js @@ -86,7 +86,7 @@ const createScreen = model => ({ }, { _id: "", - _component: "@budibase/standard-components/datatable", + _component: "@budibase/standard-components/datagrid", _styles: { normal: {}, hover: {}, @@ -100,10 +100,6 @@ const createScreen = model => ({ modelId: model._id, isModel: true, }, - stripeColor: "", - borderColor: "", - backgroundColor: "", - color: "", _instanceName: `${model.name} Table`, _children: [], }, From 99500cb1236bfed2f797d7ebc3fbedab0507408f Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Mon, 12 Oct 2020 21:22:23 +0100 Subject: [PATCH 2/2] remove screen1 from dummy data --- .../appDirectoryTemplate/pages/main/page.json | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/packages/server/src/utilities/appDirectoryTemplate/pages/main/page.json b/packages/server/src/utilities/appDirectoryTemplate/pages/main/page.json index 9e2c3c8e64..916ad5d224 100644 --- a/packages/server/src/utilities/appDirectoryTemplate/pages/main/page.json +++ b/packages/server/src/utilities/appDirectoryTemplate/pages/main/page.json @@ -54,34 +54,6 @@ "_instanceId": "inst_cf8ace4_69efc0d72e6f443db2d4c902c14d9394", "_instanceName": "Home Link", "_children": [] - }, - { - "_id": "d3325634-0945-4387-8bb3-d9d9be186c1c", - "_component": "@budibase/standard-components/link", - "_styles": { - "normal": { - "font-family": "Inter", - "font-weight": "400", - "color": "#000000", - "text-decoration-line": "none", - "font-size": "16px" - }, - "hover": {}, - "active": {}, - "selected": {} - }, - "_code": "", - "url": "/screen1", - "openInNewTab": false, - "text": "Screen 1", - "color": "", - "hoverColor": "", - "underline": false, - "fontSize": "", - "fontFamily": "initial", - "_instanceId": "inst_cf8ace4_69efc0d72e6f443db2d4c902c14d9394", - "_instanceName": "Screen 1 Link", - "_children": [] } ] },