mirror of
https://github.com/strapi/strapi.git
synced 2025-10-30 09:23:28 +00:00
chore: add default stage color constant
This commit is contained in:
parent
eb70b19e1b
commit
dad3437033
@ -4,5 +4,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
WORKFLOW_MODEL_UID: 'admin::workflow',
|
WORKFLOW_MODEL_UID: 'admin::workflow',
|
||||||
STAGE_MODEL_UID: 'admin::workflow-stage',
|
STAGE_MODEL_UID: 'admin::workflow-stage',
|
||||||
|
STAGE_DEFAULT_COLOR: '#4945FF',
|
||||||
ENTITY_STAGE_ATTRIBUTE: 'strapi_reviewWorkflows_stage',
|
ENTITY_STAGE_ATTRIBUTE: 'strapi_reviewWorkflows_stage',
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
const { STAGE_DEFAULT_COLOR } = require('../../constants/workflows');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
schema: {
|
schema: {
|
||||||
collectionName: 'strapi_workflows_stages',
|
collectionName: 'strapi_workflows_stages',
|
||||||
@ -27,7 +29,7 @@ module.exports = {
|
|||||||
color: {
|
color: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
configurable: false,
|
configurable: false,
|
||||||
default: '#4945FF',
|
default: STAGE_DEFAULT_COLOR,
|
||||||
},
|
},
|
||||||
workflow: {
|
workflow: {
|
||||||
type: 'relation',
|
type: 'relation',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user