chore: add default stage color constant

This commit is contained in:
Marc-Roig 2023-04-29 11:59:33 +02:00
parent eb70b19e1b
commit dad3437033
No known key found for this signature in database
GPG Key ID: FB4E2C43A0BEE249
2 changed files with 4 additions and 1 deletions

View File

@ -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',
};

View File

@ -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',