mirror of
https://github.com/strapi/strapi.git
synced 2025-09-27 01:09:49 +00:00
Merge pull request #17131 from strapi/fix/review-worflow-column
This commit is contained in:
commit
1b09113fc3
@ -33,6 +33,7 @@ import {
|
|||||||
} from '@strapi/helper-plugin';
|
} from '@strapi/helper-plugin';
|
||||||
import { ArrowLeft, Cog, Plus } from '@strapi/icons';
|
import { ArrowLeft, Cog, Plus } from '@strapi/icons';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
import getReviewWorkflowsColumn from 'ee_else_ce/content-manager/components/DynamicTable/CellContent/ReviewWorkflowsStage/getTableColumn';
|
||||||
import isEqual from 'lodash/isEqual';
|
import isEqual from 'lodash/isEqual';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { stringify } from 'qs';
|
import { stringify } from 'qs';
|
||||||
@ -391,6 +392,17 @@ function ListView({
|
|||||||
return formattedHeaders;
|
return formattedHeaders;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// this should not exist. Ideally we would use registerHook() similar to what has been done
|
||||||
|
// in the i18n plugin. In order to do that review-workflows should have been a plugin. In
|
||||||
|
// a future iteration we need to find a better pattern.
|
||||||
|
|
||||||
|
// In CE this will return null - in EE a column definition including the custom formatting component.
|
||||||
|
const reviewWorkflowColumn = getReviewWorkflowsColumn(layout);
|
||||||
|
|
||||||
|
if (reviewWorkflowColumn) {
|
||||||
|
formattedHeaders.push(reviewWorkflowColumn);
|
||||||
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
...formattedHeaders,
|
...formattedHeaders,
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user