diff --git a/packages/core/admin/ee/server/constants/workflows.js b/packages/core/admin/ee/server/constants/workflows.js index b9d04fba51..aa15028863 100644 --- a/packages/core/admin/ee/server/constants/workflows.js +++ b/packages/core/admin/ee/server/constants/workflows.js @@ -4,5 +4,6 @@ module.exports = { WORKFLOW_MODEL_UID: 'admin::workflow', STAGE_MODEL_UID: 'admin::workflow-stage', + STAGE_DEFAULT_COLOR: '#4945FF', ENTITY_STAGE_ATTRIBUTE: 'strapi_reviewWorkflows_stage', }; diff --git a/packages/core/admin/ee/server/content-types/workflow-stage/index.js b/packages/core/admin/ee/server/content-types/workflow-stage/index.js index 5f93eb69c9..4c24926c49 100644 --- a/packages/core/admin/ee/server/content-types/workflow-stage/index.js +++ b/packages/core/admin/ee/server/content-types/workflow-stage/index.js @@ -1,5 +1,7 @@ 'use strict'; +const { STAGE_DEFAULT_COLOR } = require('../../constants/workflows'); + module.exports = { schema: { collectionName: 'strapi_workflows_stages', @@ -27,7 +29,7 @@ module.exports = { color: { type: 'string', configurable: false, - default: '#4945FF', + default: STAGE_DEFAULT_COLOR, }, workflow: { type: 'relation',