From 3eebcf6c2f4633abaf0a09a35d7f5add7130bfcd Mon Sep 17 00:00:00 2001 From: soupette Date: Thu, 26 Dec 2019 10:04:31 +0100 Subject: [PATCH] Fix stepper for editing category --- .../api/custom/models/custom.settings.json | 6 +++--- .../admin/src/containers/LeftMenu/index.js | 13 +++++++++++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/examples/getstarted/api/custom/models/custom.settings.json b/examples/getstarted/api/custom/models/custom.settings.json index 05c259c68f..3edd34c891 100644 --- a/examples/getstarted/api/custom/models/custom.settings.json +++ b/examples/getstarted/api/custom/models/custom.settings.json @@ -1,4 +1,6 @@ { + "connection": "default", + "collectionName": "customs", "info": { "name": "custom" }, @@ -13,7 +15,5 @@ "default.closingperiod" ] } - }, - "connection": "default", - "collectionName": "customs" + } } diff --git a/packages/strapi-plugin-content-type-builder/admin/src/containers/LeftMenu/index.js b/packages/strapi-plugin-content-type-builder/admin/src/containers/LeftMenu/index.js index 23b1c93fa5..9a8bcc4016 100644 --- a/packages/strapi-plugin-content-type-builder/admin/src/containers/LeftMenu/index.js +++ b/packages/strapi-plugin-content-type-builder/admin/src/containers/LeftMenu/index.js @@ -43,10 +43,19 @@ function LeftMenu({ wait }) { actionType: 'edit', modalType: 'editCategory', categoryName: data.name, - - headerDisplayCategory: formatMessage({ + header_label_1: formatMessage({ id: getTrad('modalForm.header.categories'), }), + header_icon_name_1: 'component', + header_icon_isCustom_1: false, + header_info_category_1: null, + header_info_name_1: null, + header_label_2: data.name, + header_icon_name_2: null, + header_icon_isCustom_2: false, + header_info_category_2: null, + header_info_name_2: null, + settingType: 'base', });