@strapi/admin 4.11.4 → 4.12.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/src/constants.js +83 -83
- package/admin/src/content-manager/components/CollectionTypeFormWrapper/index.js +8 -5
- package/admin/src/content-manager/components/Inputs/index.js +3 -47
- package/admin/src/content-manager/components/SingleTypeFormWrapper/index.js +34 -37
- package/admin/src/content-manager/pages/EditSettingsView/components/ModalForm.js +0 -27
- package/admin/src/content-manager/pages/EditView/Information/index.js +1 -1
- package/admin/src/content-manager/pages/EditView/InformationBox/InformationBoxCE.js +1 -2
- package/admin/src/content-manager/pages/EditView/InformationBox/index.js +1 -3
- package/admin/src/content-manager/pages/EditView/index.js +14 -2
- package/admin/src/content-manager/pages/ListView/components/TableRows/index.js +93 -14
- package/admin/src/content-manager/pages/ListView/index.js +65 -59
- package/admin/src/content-manager/pages/ListView/utils/buildValidGetParams.js +30 -0
- package/admin/src/content-manager/pages/ListView/utils/index.js +1 -1
- package/admin/src/content-manager/utils/mergeMetasWithSchema.js +5 -1
- package/admin/src/hooks/index.js +0 -1
- package/admin/src/hooks/useAdminUsers/useAdminUsers.js +3 -3
- package/admin/src/hooks/useEnterprise/useEnterprise.js +4 -4
- package/admin/src/hooks/useSettingsMenu/index.js +35 -21
- package/admin/src/pages/App/index.js +28 -23
- package/admin/src/pages/AuthPage/components/Login/index.js +3 -5
- package/admin/src/pages/AuthPage/components/Register/index.js +5 -1
- package/admin/src/pages/AuthPage/constants.js +3 -2
- package/admin/src/pages/AuthPage/index.js +18 -1
- package/admin/src/pages/HomePage/index.js +19 -7
- package/admin/src/pages/ProfilePage/index.js +12 -12
- package/admin/src/pages/SettingsPage/components/SettingsNav/index.js +13 -11
- package/admin/src/pages/SettingsPage/components/Tokens/TokenBox/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/index.js +17 -1
- package/admin/src/pages/SettingsPage/pages/Users/EditPage/index.js +16 -3
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/CreateAction/index.js +2 -4
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/index.js +15 -1
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/index.js +36 -5
- package/admin/src/pages/SettingsPage/pages/Users/components/MagicLink/index.js +3 -5
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/EventTable/index.js +1 -3
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/WebhookForm/index.js +16 -1
- package/admin/src/translations/zh-Hans.json +1 -1
- package/build/0cd5f8915b265d5b1856.png +0 -0
- package/build/1049.758a01f5.chunk.js +1 -0
- package/build/{3528.4845cf92.chunk.js → 1386.762d6eb8.chunk.js} +1 -1
- package/build/1727.b49f0713.chunk.js +1 -0
- package/build/190.66d89241.chunk.js +117 -0
- package/build/{5563.86f9aa9c.chunk.js → 2225.15d1df72.chunk.js} +3 -3
- package/build/2379.d33a2e16.chunk.js +1 -0
- package/build/2395.b0419a54.chunk.js +26 -0
- package/build/2801.18ac397d.chunk.js +1 -0
- package/build/{7394.423886bd.chunk.js → 3100.21c343fa.chunk.js} +1 -1
- package/build/311.cb0884bb.chunk.js +1 -0
- package/build/3483.e182b190.chunk.js +1 -0
- package/build/3984.ea7b8036.chunk.js +1 -0
- package/build/4546.ff9fdf30.chunk.js +1 -0
- package/build/502.ccb38223.chunk.js +1 -0
- package/build/5483.ed2c7efa.chunk.js +6 -0
- package/build/{5542.c62d0daf.chunk.js → 5542.2415a393.chunk.js} +6 -6
- package/build/6158.f9d82db9.chunk.js +1 -0
- package/build/7030.b98dcedf.chunk.js +1 -0
- package/build/7464.c6d0565c.chunk.js +1 -0
- package/build/8276.23e0763b.chunk.js +26 -0
- package/build/918.54414509.chunk.js +1 -0
- package/build/{9932.7e2b71de.chunk.js → 9932.b5a3bb3a.chunk.js} +81 -81
- package/build/9944.7af075a5.chunk.js +26 -0
- package/build/{Admin-authenticatedApp.cb649fc1.chunk.js → Admin-authenticatedApp.2ffa318a.chunk.js} +5 -5
- package/build/Admin_InternalErrorPage.f45f2462.chunk.js +1 -0
- package/build/{Admin_homePage.be30ef4e.chunk.js → Admin_homePage.ac9dfb86.chunk.js} +23 -15
- package/build/{Admin_marketplace.74a58e20.chunk.js → Admin_marketplace.f0b87fce.chunk.js} +1 -1
- package/build/{Admin_pluginsPage.ce464189.chunk.js → Admin_pluginsPage.8728ff6e.chunk.js} +1 -1
- package/build/{Admin_profilePage.2131eb68.chunk.js → Admin_profilePage.a968035f.chunk.js} +2 -2
- package/build/Admin_settingsPage.3ad19487.chunk.js +79 -0
- package/build/Upload_ConfigureTheView.345ac1e0.chunk.js +1 -0
- package/build/admin-app.088bcd33.chunk.js +36 -0
- package/build/{admin-edit-roles-page.3fdd6b9d.chunk.js → admin-edit-roles-page.a49b9f4f.chunk.js} +4 -4
- package/build/admin-edit-users.67704088.chunk.js +10 -0
- package/build/{admin-roles-list.e17b00d7.chunk.js → admin-roles-list.0c129e98.chunk.js} +1 -1
- package/build/admin-users.3279ffb0.chunk.js +11 -0
- package/build/api-tokens-create-page.46c2ea84.chunk.js +1 -0
- package/build/{api-tokens-edit-page.9a1dd2fa.chunk.js → api-tokens-edit-page.58139df9.chunk.js} +1 -1
- package/build/{api-tokens-list-page.a103f526.chunk.js → api-tokens-list-page.505bf7e0.chunk.js} +2 -2
- package/build/audit-logs-settings-page.4b422831.chunk.js +1 -0
- package/build/content-manager.9b569036.chunk.js +1094 -0
- package/build/{content-type-builder-list-view.a200a358.chunk.js → content-type-builder-list-view.bf9be456.chunk.js} +9 -9
- package/build/content-type-builder-translation-en-json.38e20391.chunk.js +1 -0
- package/build/{content-type-builder-translation-zh-json.ad24dbeb.chunk.js → content-type-builder-translation-zh-json.958d90e1.chunk.js} +1 -1
- package/build/content-type-builder.3963fb2d.chunk.js +166 -0
- package/build/{email-settings-page.45695daa.chunk.js → email-settings-page.d494d1eb.chunk.js} +2 -2
- package/build/{i18n-settings-page.29308d0b.chunk.js → i18n-settings-page.47f78016.chunk.js} +1 -1
- package/build/index.html +1 -1
- package/build/main.98c989b0.js +2908 -0
- package/build/review-workflows-settings-create-view.60bc516c.chunk.js +1 -0
- package/build/review-workflows-settings-edit-view.898ea409.chunk.js +1 -0
- package/build/review-workflows-settings-list-view.240cacdf.chunk.js +56 -0
- package/build/runtime~main.44bf2a37.js +2 -0
- package/build/sso-settings-page.ed6f3f15.chunk.js +1 -0
- package/build/transfer-tokens-create-page.1597e6ab.chunk.js +1 -0
- package/build/transfer-tokens-edit-page.8741529f.chunk.js +1 -0
- package/build/{transfer-tokens-list-page.7237443d.chunk.js → transfer-tokens-list-page.22147d2c.chunk.js} +2 -2
- package/build/upload-settings.cac210a0.chunk.js +14 -0
- package/build/upload.8d01c525.chunk.js +26 -0
- package/build/{users-advanced-settings-page.750b1f76.chunk.js → users-advanced-settings-page.18379a56.chunk.js} +1 -1
- package/build/users-email-settings-page.a87978e5.chunk.js +9 -0
- package/build/users-providers-settings-page.8876c1ee.chunk.js +14 -0
- package/build/{users-roles-settings-page.1f505119.chunk.js → users-roles-settings-page.0431f48c.chunk.js} +2 -2
- package/build/webhook-edit-page.a91f27a1.chunk.js +33 -0
- package/build/{webhook-list-page.940a40f1.chunk.js → webhook-list-page.65e1b5bb.chunk.js} +1 -1
- package/build/{zh-Hans-json.4cfef87d.chunk.js → zh-Hans-json.fada6f40.chunk.js} +1 -1
- package/ee/admin/constants.js +14 -14
- package/ee/admin/content-manager/pages/EditView/InformationBox/InformationBoxEE.js +88 -31
- package/ee/admin/content-manager/pages/EditView/InformationBox/index.js +1 -3
- package/ee/admin/content-manager/{components/DynamicTable/CellContent/ReviewWorkflowsStage → pages/ListView/ReviewWorkflowsColumn}/ReviewWorkflowsStageEE.js +7 -2
- package/ee/admin/content-manager/pages/ListView/ReviewWorkflowsColumn/constants.js +24 -0
- package/ee/admin/content-manager/pages/ListView/ReviewWorkflowsColumn/index.js +1 -0
- package/ee/admin/hooks/useLicenseLimitNotification/index.js +17 -6
- package/ee/admin/hooks/useLicenseLimits/index.js +1 -32
- package/ee/admin/hooks/useLicenseLimits/useLicenseLimits.js +44 -0
- package/ee/admin/pages/AuthPage/components/Login/index.js +3 -5
- package/ee/admin/pages/HomePage/index.js +11 -0
- package/ee/admin/pages/SettingsPage/constants.js +25 -1
- package/ee/admin/pages/SettingsPage/pages/ApplicationInfosPage/components/AdminSeatInfo/index.js +7 -7
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/hooks/useAuditLogsData.js +6 -4
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/actions/index.js +19 -4
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/Layout/Layout.js +65 -0
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/Layout/index.js +1 -0
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/LimitsModal/LimitsModal.js +111 -0
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/LimitsModal/assets/balloon.png +0 -0
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/LimitsModal/index.js +3 -0
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/ProtectedPage/ProtectedPage.js +21 -0
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/ProtectedPage/index.js +1 -0
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/Stages/Stage/Stage.js +5 -5
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/WorkflowAttributes/WorkflowAttributes.js +110 -0
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/WorkflowAttributes/index.js +1 -0
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/constants.js +3 -1
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/hooks/useReviewWorkflows.js +13 -19
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/pages/CreateView/CreateView.js +246 -0
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/pages/CreateView/index.js +13 -0
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/pages/EditView/EditView.js +287 -0
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/pages/EditView/index.js +13 -0
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/pages/ListView/ListView.js +382 -0
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/pages/ListView/index.js +13 -0
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/reducer/index.js +53 -23
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/utils/getWorkflowValidationSchema.js +43 -28
- package/ee/admin/pages/SettingsPage/pages/Users/ListPage/CreateAction/index.js +11 -6
- package/ee/admin/pages/SettingsPage/pages/Users/ListPage/index.js +13 -0
- package/ee/admin/pages/SettingsPage/pages/Users/components/MagicLink/index.js +3 -5
- package/ee/admin/pages/SettingsPage/pages/Webhooks/EditView/components/EventTable/index.js +1 -3
- package/ee/server/config/admin-actions.js +24 -0
- package/ee/server/constants/default-stages.json +8 -4
- package/ee/server/constants/default-workflow.json +3 -1
- package/ee/server/constants/workflows.js +10 -1
- package/ee/server/content-types/workflow/index.js +10 -0
- package/ee/server/content-types/workflow-stage/index.js +3 -1
- package/ee/server/controllers/admin.js +1 -0
- package/ee/server/controllers/workflows/index.js +135 -8
- package/ee/server/controllers/workflows/stages/index.js +38 -38
- package/ee/server/migrations/review-workflows-content-types.js +29 -0
- package/ee/server/migrations/review-workflows-deleted-ct-in-workflows.js +39 -0
- package/ee/server/migrations/review-workflows-stage-attribute.js +49 -0
- package/ee/server/migrations/review-workflows-stages-color.js +2 -2
- package/ee/server/migrations/review-workflows-workflow-name.js +21 -0
- package/ee/server/register.js +12 -2
- package/ee/server/routes/review-workflows.js +44 -10
- package/ee/server/services/index.js +1 -0
- package/ee/server/services/review-workflows/entity-service-decorator.js +8 -13
- package/ee/server/services/review-workflows/review-workflows.js +45 -53
- package/ee/server/services/review-workflows/stages.js +84 -46
- package/ee/server/services/review-workflows/validation.js +60 -0
- package/ee/server/services/review-workflows/workflows/content-types.js +80 -0
- package/ee/server/services/review-workflows/workflows/index.js +207 -0
- package/ee/server/utils/review-workflows.js +30 -25
- package/ee/server/validation/review-workflows.js +49 -10
- package/index.js +0 -14
- package/package.json +12 -21
- package/webpack.alias.js +0 -3
- package/webpack.config.js +1 -75
- package/admin/src/content-manager/components/DynamicTable/CellContent/ReviewWorkflowsStage/getTableColumn.js +0 -2
- package/admin/src/content-manager/pages/ListView/utils/buildQueryString.js +0 -36
- package/admin/src/content-manager/pages/ListView/utils/createPluginsFilter.js +0 -4
- package/admin/src/hooks/useLicenseLimits/index.js +0 -3
- package/admin/src/pages/App/utils/index.js +0 -3
- package/admin/src/pages/App/utils/unique-identifier.js +0 -12
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/AdminSeatInfo/index.js +0 -5
- package/build/1386.3b2aa6a7.chunk.js +0 -3
- package/build/1799.44d2e264.chunk.js +0 -33
- package/build/1970.39a2d75e.chunk.js +0 -1
- package/build/3269.1ea0f5a6.chunk.js +0 -1
- package/build/5932.6a23b88c.chunk.js +0 -1
- package/build/7018.98feed67.chunk.js +0 -1
- package/build/7259.fb69d4bf.chunk.js +0 -1
- package/build/Admin_InternalErrorPage.8911cb49.chunk.js +0 -1
- package/build/Admin_settingsPage.4069bb8a.chunk.js +0 -79
- package/build/Upload_ConfigureTheView.7a1cb9c9.chunk.js +0 -1
- package/build/admin-app.fea867af.chunk.js +0 -61
- package/build/admin-edit-users.200551e3.chunk.js +0 -10
- package/build/admin-users.3b12dca2.chunk.js +0 -11
- package/build/api-tokens-create-page.3dd4e921.chunk.js +0 -1
- package/build/audit-logs-settings-page.f538490f.chunk.js +0 -1
- package/build/content-manager.c40f5ff9.chunk.js +0 -1088
- package/build/content-type-builder-translation-en-json.f592325b.chunk.js +0 -1
- package/build/content-type-builder.bd1bbff1.chunk.js +0 -166
- package/build/main.ee36abd9.js +0 -2927
- package/build/review-workflows-settings.93808ae0.chunk.js +0 -110
- package/build/runtime~main.efd966f6.js +0 -2
- package/build/sso-settings-page.0cdb96a6.chunk.js +0 -1
- package/build/transfer-tokens-create-page.de14cad4.chunk.js +0 -1
- package/build/transfer-tokens-edit-page.4f5e39af.chunk.js +0 -1
- package/build/upload-settings.cb6c14c3.chunk.js +0 -14
- package/build/upload.7e629643.chunk.js +0 -26
- package/build/users-email-settings-page.e9bcd865.chunk.js +0 -9
- package/build/users-providers-settings-page.a94253e9.chunk.js +0 -14
- package/build/webhook-edit-page.77ef4f1a.chunk.js +0 -33
- package/ee/admin/content-manager/components/DynamicTable/CellContent/ReviewWorkflowsStage/getTableColumn.js +0 -58
- package/ee/admin/content-manager/components/DynamicTable/CellContent/ReviewWorkflowsStage/index.js +0 -3
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/ProtectedPage.js +0 -20
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/ReviewWorkflows.js +0 -204
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/index.js +0 -3
- package/ee/server/services/review-workflows/workflows.js +0 -25
package/admin/src/constants.js
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
1
|
export const ADMIN_PERMISSIONS_CE = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
contentManager: {
|
|
3
|
+
main: [],
|
|
4
|
+
collectionTypesConfigurations: [
|
|
5
|
+
{
|
|
6
|
+
action: 'plugin::content-manager.collection-types.configure-view',
|
|
7
|
+
subject: null,
|
|
8
|
+
},
|
|
9
|
+
],
|
|
10
|
+
componentsConfigurations: [
|
|
11
|
+
{
|
|
12
|
+
action: 'plugin::content-manager.components.configure-layout',
|
|
13
|
+
subject: null,
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
singleTypesConfigurations: [
|
|
17
|
+
{
|
|
18
|
+
action: 'plugin::content-manager.single-types.configure-view',
|
|
19
|
+
subject: null,
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
marketplace: {
|
|
24
|
+
main: [{ action: 'admin::marketplace.read', subject: null }],
|
|
25
|
+
read: [{ action: 'admin::marketplace.read', subject: null }],
|
|
26
|
+
},
|
|
27
|
+
settings: {
|
|
28
|
+
roles: {
|
|
29
|
+
main: [
|
|
30
|
+
{ action: 'admin::roles.create', subject: null },
|
|
31
|
+
{ action: 'admin::roles.update', subject: null },
|
|
32
|
+
{ action: 'admin::roles.read', subject: null },
|
|
33
|
+
{ action: 'admin::roles.delete', subject: null },
|
|
9
34
|
],
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
35
|
+
create: [{ action: 'admin::roles.create', subject: null }],
|
|
36
|
+
delete: [{ action: 'admin::roles.delete', subject: null }],
|
|
37
|
+
read: [{ action: 'admin::roles.read', subject: null }],
|
|
38
|
+
update: [{ action: 'admin::roles.update', subject: null }],
|
|
39
|
+
},
|
|
40
|
+
users: {
|
|
41
|
+
main: [
|
|
42
|
+
{ action: 'admin::users.create', subject: null },
|
|
43
|
+
{ action: 'admin::users.read', subject: null },
|
|
44
|
+
{ action: 'admin::users.update', subject: null },
|
|
45
|
+
{ action: 'admin::users.delete', subject: null },
|
|
15
46
|
],
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
47
|
+
create: [{ action: 'admin::users.create', subject: null }],
|
|
48
|
+
delete: [{ action: 'admin::users.delete', subject: null }],
|
|
49
|
+
read: [{ action: 'admin::users.read', subject: null }],
|
|
50
|
+
update: [{ action: 'admin::users.update', subject: null }],
|
|
51
|
+
},
|
|
52
|
+
webhooks: {
|
|
53
|
+
main: [
|
|
54
|
+
{ action: 'admin::webhooks.create', subject: null },
|
|
55
|
+
{ action: 'admin::webhooks.read', subject: null },
|
|
56
|
+
{ action: 'admin::webhooks.update', subject: null },
|
|
57
|
+
{ action: 'admin::webhooks.delete', subject: null },
|
|
58
|
+
],
|
|
59
|
+
create: [{ action: 'admin::webhooks.create', subject: null }],
|
|
60
|
+
delete: [{ action: 'admin::webhooks.delete', subject: null }],
|
|
61
|
+
read: [
|
|
62
|
+
{ action: 'admin::webhooks.read', subject: null },
|
|
63
|
+
// NOTE: We need to check with the API
|
|
64
|
+
{ action: 'admin::webhooks.update', subject: null },
|
|
65
|
+
{ action: 'admin::webhooks.delete', subject: null },
|
|
21
66
|
],
|
|
67
|
+
update: [{ action: 'admin::webhooks.update', subject: null }],
|
|
22
68
|
},
|
|
23
|
-
|
|
24
|
-
main: [{ action: 'admin::
|
|
25
|
-
|
|
69
|
+
'api-tokens': {
|
|
70
|
+
main: [{ action: 'admin::api-tokens.access', subject: null }],
|
|
71
|
+
create: [{ action: 'admin::api-tokens.create', subject: null }],
|
|
72
|
+
delete: [{ action: 'admin::api-tokens.delete', subject: null }],
|
|
73
|
+
read: [{ action: 'admin::api-tokens.read', subject: null }],
|
|
74
|
+
update: [{ action: 'admin::api-tokens.update', subject: null }],
|
|
75
|
+
regenerate: [{ action: 'admin::api-tokens.regenerate', subject: null }],
|
|
26
76
|
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
update: [{ action: 'admin::roles.update', subject: null }],
|
|
39
|
-
},
|
|
40
|
-
users: {
|
|
41
|
-
main: [
|
|
42
|
-
{ action: 'admin::users.create', subject: null },
|
|
43
|
-
{ action: 'admin::users.read', subject: null },
|
|
44
|
-
{ action: 'admin::users.update', subject: null },
|
|
45
|
-
{ action: 'admin::users.delete', subject: null },
|
|
46
|
-
],
|
|
47
|
-
create: [{ action: 'admin::users.create', subject: null }],
|
|
48
|
-
delete: [{ action: 'admin::users.delete', subject: null }],
|
|
49
|
-
read: [{ action: 'admin::users.read', subject: null }],
|
|
50
|
-
update: [{ action: 'admin::users.update', subject: null }],
|
|
51
|
-
},
|
|
52
|
-
webhooks: {
|
|
53
|
-
main: [
|
|
54
|
-
{ action: 'admin::webhooks.create', subject: null },
|
|
55
|
-
{ action: 'admin::webhooks.read', subject: null },
|
|
56
|
-
{ action: 'admin::webhooks.update', subject: null },
|
|
57
|
-
{ action: 'admin::webhooks.delete', subject: null },
|
|
58
|
-
],
|
|
59
|
-
create: [{ action: 'admin::webhooks.create', subject: null }],
|
|
60
|
-
delete: [{ action: 'admin::webhooks.delete', subject: null }],
|
|
61
|
-
read: [
|
|
62
|
-
{ action: 'admin::webhooks.read', subject: null },
|
|
63
|
-
// NOTE: We need to check with the API
|
|
64
|
-
{ action: 'admin::webhooks.update', subject: null },
|
|
65
|
-
{ action: 'admin::webhooks.delete', subject: null },
|
|
66
|
-
],
|
|
67
|
-
update: [{ action: 'admin::webhooks.update', subject: null }],
|
|
68
|
-
},
|
|
69
|
-
'api-tokens': {
|
|
70
|
-
main: [{ action: 'admin::api-tokens.access', subject: null }],
|
|
71
|
-
create: [{ action: 'admin::api-tokens.create', subject: null }],
|
|
72
|
-
delete: [{ action: 'admin::api-tokens.delete', subject: null }],
|
|
73
|
-
read: [{ action: 'admin::api-tokens.read', subject: null }],
|
|
74
|
-
update: [{ action: 'admin::api-tokens.update', subject: null }],
|
|
75
|
-
regenerate: [{ action: 'admin::api-tokens.regenerate', subject: null }],
|
|
76
|
-
},
|
|
77
|
-
'transfer-tokens': {
|
|
78
|
-
main: [{ action: 'admin::transfer.tokens.access', subject: null }],
|
|
79
|
-
create: [{ action: 'admin::transfer.tokens.create', subject: null }],
|
|
80
|
-
delete: [{ action: 'admin::transfer.tokens.delete', subject: null }],
|
|
81
|
-
read: [{ action: 'admin::transfer.tokens.read', subject: null }],
|
|
82
|
-
update: [{ action: 'admin::transfer.tokens.update', subject: null }],
|
|
83
|
-
regenerate: [{ action: 'admin::transfer.tokens.regenerate', subject: null }],
|
|
84
|
-
},
|
|
85
|
-
'project-settings': {
|
|
86
|
-
read: [{ action: 'admin::project-settings.read', subject: null }],
|
|
87
|
-
update: [{ action: 'admin::project-settings.update', subject: null }],
|
|
88
|
-
},
|
|
77
|
+
'transfer-tokens': {
|
|
78
|
+
main: [{ action: 'admin::transfer.tokens.access', subject: null }],
|
|
79
|
+
create: [{ action: 'admin::transfer.tokens.create', subject: null }],
|
|
80
|
+
delete: [{ action: 'admin::transfer.tokens.delete', subject: null }],
|
|
81
|
+
read: [{ action: 'admin::transfer.tokens.read', subject: null }],
|
|
82
|
+
update: [{ action: 'admin::transfer.tokens.update', subject: null }],
|
|
83
|
+
regenerate: [{ action: 'admin::transfer.tokens.regenerate', subject: null }],
|
|
84
|
+
},
|
|
85
|
+
'project-settings': {
|
|
86
|
+
read: [{ action: 'admin::project-settings.read', subject: null }],
|
|
87
|
+
update: [{ action: 'admin::project-settings.update', subject: null }],
|
|
89
88
|
},
|
|
90
|
-
}
|
|
89
|
+
},
|
|
90
|
+
};
|
|
@@ -43,7 +43,7 @@ const CollectionTypeFormWrapper = ({ allLayoutData, children, slug, id, origin }
|
|
|
43
43
|
const { setCurrentStep } = useGuidedTour();
|
|
44
44
|
const { trackUsage } = useTracking();
|
|
45
45
|
const { push, replace } = useHistory();
|
|
46
|
-
const [{ rawQuery }] = useQueryParams();
|
|
46
|
+
const [{ query, rawQuery }] = useQueryParams();
|
|
47
47
|
const dispatch = useDispatch();
|
|
48
48
|
const { componentsDataStructure, contentTypeDataStructure, data, isLoading, status } =
|
|
49
49
|
useSelector(selectCrudReducer);
|
|
@@ -244,13 +244,15 @@ const CollectionTypeFormWrapper = ({ allLayoutData, children, slug, id, origin }
|
|
|
244
244
|
*/
|
|
245
245
|
const endPoint =
|
|
246
246
|
typeof origin === 'string'
|
|
247
|
-
?
|
|
248
|
-
:
|
|
247
|
+
? getRequestUrl(`collection-types/${slug}/clone/${origin}`)
|
|
248
|
+
: getRequestUrl(`collection-types/${slug}`);
|
|
249
249
|
try {
|
|
250
250
|
// Show a loading button in the EditView/Header.js && lock the app => no navigation
|
|
251
251
|
dispatch(setStatus('submit-pending'));
|
|
252
252
|
|
|
253
|
-
const { data } = await post(endPoint, body
|
|
253
|
+
const { data } = await post(endPoint, body, {
|
|
254
|
+
params: query,
|
|
255
|
+
});
|
|
254
256
|
|
|
255
257
|
trackUsageRef.current('didCreateEntry', trackerProperty);
|
|
256
258
|
toggleNotification({
|
|
@@ -286,11 +288,12 @@ const CollectionTypeFormWrapper = ({ allLayoutData, children, slug, id, origin }
|
|
|
286
288
|
replace,
|
|
287
289
|
slug,
|
|
288
290
|
dispatch,
|
|
289
|
-
|
|
291
|
+
query,
|
|
290
292
|
toggleNotification,
|
|
291
293
|
setCurrentStep,
|
|
292
294
|
queryClient,
|
|
293
295
|
post,
|
|
296
|
+
rawQuery,
|
|
294
297
|
]
|
|
295
298
|
);
|
|
296
299
|
|
|
@@ -75,20 +75,9 @@ function Inputs({
|
|
|
75
75
|
return foundAttributeType === 'dynamiczone';
|
|
76
76
|
}, [currentContentTypeLayout, fieldName]);
|
|
77
77
|
|
|
78
|
-
const inputType =
|
|
79
|
-
return getInputType(type);
|
|
80
|
-
}, [type]);
|
|
81
|
-
|
|
82
|
-
const inputValue = useMemo(() => {
|
|
83
|
-
// Fix for input file multipe
|
|
84
|
-
if (type === 'media' && !value) {
|
|
85
|
-
return [];
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
return value;
|
|
89
|
-
}, [type, value]);
|
|
78
|
+
const inputType = getInputType(type);
|
|
90
79
|
|
|
91
|
-
const
|
|
80
|
+
const inputValue = type === 'media' && !value ? [] : value;
|
|
92
81
|
|
|
93
82
|
const isUserAllowedToEditField = useMemo(() => {
|
|
94
83
|
const joinedName = fieldName.join('.');
|
|
@@ -159,36 +148,6 @@ function Inputs({
|
|
|
159
148
|
|
|
160
149
|
const { label, description, placeholder, visible } = metadatas;
|
|
161
150
|
|
|
162
|
-
/**
|
|
163
|
-
* It decides whether using the default `step` accoding to its `inputType` or the one
|
|
164
|
-
* obtained from `metadatas`.
|
|
165
|
-
*
|
|
166
|
-
* The `metadatas.step` is returned when the `inputValue` is divisible by it or when the
|
|
167
|
-
* `inputValue` is empty, otherwise the default `step` is returned.
|
|
168
|
-
*/
|
|
169
|
-
const inputStep = useMemo(() => {
|
|
170
|
-
if (!metadatas.step || (inputType !== 'datetime' && inputType !== 'time')) {
|
|
171
|
-
return step;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
if (!inputValue) {
|
|
175
|
-
return metadatas.step;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
let minutes;
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Wtf is this?
|
|
182
|
-
*/
|
|
183
|
-
if (inputType === 'datetime') {
|
|
184
|
-
minutes = parseInt(inputValue.substr(14, 2), 10);
|
|
185
|
-
} else if (inputType === 'time') {
|
|
186
|
-
minutes = parseInt(inputValue.slice(-2), 10);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
return minutes % metadatas.step === 0 ? metadatas.step : step;
|
|
190
|
-
}, [inputType, inputValue, metadatas.step, step]);
|
|
191
|
-
|
|
192
151
|
if (visible === false) {
|
|
193
152
|
return null;
|
|
194
153
|
}
|
|
@@ -271,7 +230,7 @@ function Inputs({
|
|
|
271
230
|
options={options}
|
|
272
231
|
placeholder={placeholder ? { id: placeholder, defaultMessage: placeholder } : null}
|
|
273
232
|
required={fieldSchema.required || false}
|
|
274
|
-
step={
|
|
233
|
+
step={getStep(type)}
|
|
275
234
|
type={customFieldUid || inputType}
|
|
276
235
|
// validations={validations}
|
|
277
236
|
value={inputValue}
|
|
@@ -317,9 +276,6 @@ const getStep = (type) => {
|
|
|
317
276
|
case 'float':
|
|
318
277
|
case 'decimal':
|
|
319
278
|
return 0.01;
|
|
320
|
-
case 'time':
|
|
321
|
-
case 'datetime':
|
|
322
|
-
return 15;
|
|
323
279
|
default:
|
|
324
280
|
return 1;
|
|
325
281
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { memo, useCallback, useEffect, useRef, useState } from 'react';
|
|
1
|
+
import { memo, useCallback, useEffect, useRef, useState, useMemo } from 'react';
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
formatContentTypeData,
|
|
@@ -16,7 +16,7 @@ import { useQueryClient } from 'react-query';
|
|
|
16
16
|
import { useDispatch, useSelector } from 'react-redux';
|
|
17
17
|
import { useHistory } from 'react-router-dom';
|
|
18
18
|
|
|
19
|
-
import
|
|
19
|
+
import { buildValidGetParams } from '../../pages/ListView/utils';
|
|
20
20
|
import {
|
|
21
21
|
getData,
|
|
22
22
|
getDataSucceeded,
|
|
@@ -40,7 +40,7 @@ const SingleTypeFormWrapper = ({ allLayoutData, children, slug }) => {
|
|
|
40
40
|
const trackUsageRef = useRef(trackUsage);
|
|
41
41
|
const [isCreatingEntry, setIsCreatingEntry] = useState(true);
|
|
42
42
|
const [{ query, rawQuery }] = useQueryParams();
|
|
43
|
-
const
|
|
43
|
+
const params = useMemo(() => buildValidGetParams(query), [query]);
|
|
44
44
|
const toggleNotification = useNotification();
|
|
45
45
|
const dispatch = useDispatch();
|
|
46
46
|
const { formatAPIError } = useAPIErrorHandler(getTrad);
|
|
@@ -110,8 +110,9 @@ const SingleTypeFormWrapper = ({ allLayoutData, children, slug }) => {
|
|
|
110
110
|
setIsCreatingEntry(true);
|
|
111
111
|
|
|
112
112
|
try {
|
|
113
|
-
const { data } = await fetchClient.get(getRequestUrl(
|
|
113
|
+
const { data } = await fetchClient.get(getRequestUrl(slug), {
|
|
114
114
|
cancelToken: source.token,
|
|
115
|
+
params,
|
|
115
116
|
});
|
|
116
117
|
|
|
117
118
|
dispatch(getDataSucceeded(cleanReceivedData(data)));
|
|
@@ -143,16 +144,7 @@ const SingleTypeFormWrapper = ({ allLayoutData, children, slug }) => {
|
|
|
143
144
|
fetchData(source);
|
|
144
145
|
|
|
145
146
|
return () => source.cancel('Operation canceled by the user.');
|
|
146
|
-
}, [
|
|
147
|
-
fetchClient,
|
|
148
|
-
cleanReceivedData,
|
|
149
|
-
push,
|
|
150
|
-
slug,
|
|
151
|
-
dispatch,
|
|
152
|
-
searchToSend,
|
|
153
|
-
rawQuery,
|
|
154
|
-
toggleNotification,
|
|
155
|
-
]);
|
|
147
|
+
}, [fetchClient, cleanReceivedData, push, slug, dispatch, params, rawQuery, toggleNotification]);
|
|
156
148
|
|
|
157
149
|
const displayErrors = useCallback(
|
|
158
150
|
(err) => {
|
|
@@ -166,7 +158,9 @@ const SingleTypeFormWrapper = ({ allLayoutData, children, slug }) => {
|
|
|
166
158
|
try {
|
|
167
159
|
trackUsageRef.current('willDeleteEntry', trackerProperty);
|
|
168
160
|
|
|
169
|
-
const { data } = await del(getRequestUrl(
|
|
161
|
+
const { data } = await del(getRequestUrl(slug), {
|
|
162
|
+
params: query,
|
|
163
|
+
});
|
|
170
164
|
|
|
171
165
|
toggleNotification({
|
|
172
166
|
type: 'success',
|
|
@@ -187,17 +181,17 @@ const SingleTypeFormWrapper = ({ allLayoutData, children, slug }) => {
|
|
|
187
181
|
return Promise.reject(err);
|
|
188
182
|
}
|
|
189
183
|
},
|
|
190
|
-
[del, slug, displayErrors, toggleNotification,
|
|
184
|
+
[del, slug, displayErrors, toggleNotification, query, dispatch, rawQuery]
|
|
191
185
|
);
|
|
192
186
|
|
|
193
187
|
const onPost = useCallback(
|
|
194
188
|
async (body, trackerProperty) => {
|
|
195
|
-
const endPoint = getRequestUrl(
|
|
189
|
+
const endPoint = getRequestUrl(slug);
|
|
196
190
|
|
|
197
191
|
try {
|
|
198
192
|
dispatch(setStatus('submit-pending'));
|
|
199
193
|
|
|
200
|
-
const { data } = await put(endPoint, body);
|
|
194
|
+
const { data } = await put(endPoint, body, { params: query });
|
|
201
195
|
|
|
202
196
|
trackUsageRef.current('didCreateEntry', trackerProperty);
|
|
203
197
|
toggleNotification({
|
|
@@ -232,7 +226,7 @@ const SingleTypeFormWrapper = ({ allLayoutData, children, slug }) => {
|
|
|
232
226
|
displayErrors,
|
|
233
227
|
slug,
|
|
234
228
|
dispatch,
|
|
235
|
-
|
|
229
|
+
query,
|
|
236
230
|
toggleNotification,
|
|
237
231
|
setCurrentStep,
|
|
238
232
|
queryClient,
|
|
@@ -263,11 +257,17 @@ const SingleTypeFormWrapper = ({ allLayoutData, children, slug }) => {
|
|
|
263
257
|
const onPublish = useCallback(async () => {
|
|
264
258
|
try {
|
|
265
259
|
trackUsageRef.current('willPublishEntry');
|
|
266
|
-
const endPoint = getRequestUrl(`${slug}/actions/publish
|
|
260
|
+
const endPoint = getRequestUrl(`${slug}/actions/publish`);
|
|
267
261
|
|
|
268
262
|
dispatch(setStatus('publish-pending'));
|
|
269
263
|
|
|
270
|
-
const { data } = await post(
|
|
264
|
+
const { data } = await post(
|
|
265
|
+
endPoint,
|
|
266
|
+
{},
|
|
267
|
+
{
|
|
268
|
+
params: query,
|
|
269
|
+
}
|
|
270
|
+
);
|
|
271
271
|
|
|
272
272
|
trackUsageRef.current('didPublishEntry');
|
|
273
273
|
toggleNotification({
|
|
@@ -287,18 +287,18 @@ const SingleTypeFormWrapper = ({ allLayoutData, children, slug }) => {
|
|
|
287
287
|
|
|
288
288
|
return Promise.reject(err);
|
|
289
289
|
}
|
|
290
|
-
}, [post, cleanReceivedData, displayErrors, slug,
|
|
290
|
+
}, [post, cleanReceivedData, displayErrors, slug, query, dispatch, toggleNotification]);
|
|
291
291
|
|
|
292
292
|
const onPut = useCallback(
|
|
293
293
|
async (body, trackerProperty) => {
|
|
294
|
-
const endPoint = getRequestUrl(
|
|
294
|
+
const endPoint = getRequestUrl(slug);
|
|
295
295
|
|
|
296
296
|
try {
|
|
297
297
|
trackUsageRef.current('willEditEntry', trackerProperty);
|
|
298
298
|
|
|
299
299
|
dispatch(setStatus('submit-pending'));
|
|
300
300
|
|
|
301
|
-
const { data } = await put(endPoint, body);
|
|
301
|
+
const { data } = await put(endPoint, body, { params: query });
|
|
302
302
|
|
|
303
303
|
toggleNotification({
|
|
304
304
|
type: 'success',
|
|
@@ -325,28 +325,25 @@ const SingleTypeFormWrapper = ({ allLayoutData, children, slug }) => {
|
|
|
325
325
|
return Promise.reject(err);
|
|
326
326
|
}
|
|
327
327
|
},
|
|
328
|
-
[
|
|
329
|
-
put,
|
|
330
|
-
cleanReceivedData,
|
|
331
|
-
displayErrors,
|
|
332
|
-
slug,
|
|
333
|
-
dispatch,
|
|
334
|
-
rawQuery,
|
|
335
|
-
toggleNotification,
|
|
336
|
-
queryClient,
|
|
337
|
-
]
|
|
328
|
+
[put, cleanReceivedData, displayErrors, slug, dispatch, query, toggleNotification, queryClient]
|
|
338
329
|
);
|
|
339
330
|
|
|
340
331
|
// The publish and unpublish method could be refactored but let's leave the duplication for now
|
|
341
332
|
const onUnpublish = useCallback(async () => {
|
|
342
|
-
const endPoint = getRequestUrl(`${slug}/actions/unpublish
|
|
333
|
+
const endPoint = getRequestUrl(`${slug}/actions/unpublish`);
|
|
343
334
|
|
|
344
335
|
dispatch(setStatus('unpublish-pending'));
|
|
345
336
|
|
|
346
337
|
try {
|
|
347
338
|
trackUsageRef.current('willUnpublishEntry');
|
|
348
339
|
|
|
349
|
-
const { data } = await post(
|
|
340
|
+
const { data } = await post(
|
|
341
|
+
endPoint,
|
|
342
|
+
{},
|
|
343
|
+
{
|
|
344
|
+
params: query,
|
|
345
|
+
}
|
|
346
|
+
);
|
|
350
347
|
|
|
351
348
|
trackUsageRef.current('didUnpublishEntry');
|
|
352
349
|
toggleNotification({
|
|
@@ -361,7 +358,7 @@ const SingleTypeFormWrapper = ({ allLayoutData, children, slug }) => {
|
|
|
361
358
|
dispatch(setStatus('resolved'));
|
|
362
359
|
displayErrors(err);
|
|
363
360
|
}
|
|
364
|
-
}, [post, cleanReceivedData, toggleNotification, displayErrors, slug, dispatch,
|
|
361
|
+
}, [post, cleanReceivedData, toggleNotification, displayErrors, slug, dispatch, query]);
|
|
365
362
|
|
|
366
363
|
return children({
|
|
367
364
|
componentsDataStructure,
|
|
@@ -20,10 +20,6 @@ const FIELD_SIZES = [
|
|
|
20
20
|
[12, '100%'],
|
|
21
21
|
];
|
|
22
22
|
|
|
23
|
-
const TIME_FIELD_OPTIONS = [1, 5, 10, 15, 30, 60];
|
|
24
|
-
|
|
25
|
-
const TIME_FIELD_TYPES = ['datetime', 'time'];
|
|
26
|
-
|
|
27
23
|
const ModalForm = ({ onMetaChange, onSizeChange }) => {
|
|
28
24
|
const { formatMessage } = useIntl();
|
|
29
25
|
const { modifiedData, selectedField, attributes, fieldForm } = useLayoutDnd();
|
|
@@ -131,33 +127,10 @@ const ModalForm = ({ onMetaChange, onSizeChange }) => {
|
|
|
131
127
|
</GridItem>
|
|
132
128
|
);
|
|
133
129
|
|
|
134
|
-
const hasTimePicker = TIME_FIELD_TYPES.includes(attributes[selectedField].type);
|
|
135
|
-
|
|
136
|
-
const timeStepField = (
|
|
137
|
-
<GridItem col={6} key="step">
|
|
138
|
-
<Select
|
|
139
|
-
value={get(fieldForm, ['metadata', 'step'], 1)}
|
|
140
|
-
name="step"
|
|
141
|
-
onChange={(value) => onMetaChange({ target: { name: 'step', value } })}
|
|
142
|
-
label={formatMessage({
|
|
143
|
-
id: getTrad('containers.SettingPage.editSettings.step.label'),
|
|
144
|
-
defaultMessage: 'Time interval (minutes)',
|
|
145
|
-
})}
|
|
146
|
-
>
|
|
147
|
-
{TIME_FIELD_OPTIONS.map((value) => (
|
|
148
|
-
<Option key={value} value={value}>
|
|
149
|
-
{value}
|
|
150
|
-
</Option>
|
|
151
|
-
))}
|
|
152
|
-
</Select>
|
|
153
|
-
</GridItem>
|
|
154
|
-
);
|
|
155
|
-
|
|
156
130
|
return (
|
|
157
131
|
<>
|
|
158
132
|
{metaFields}
|
|
159
133
|
{isResizable && sizeField}
|
|
160
|
-
{hasTimePicker && timeStepField}
|
|
161
134
|
</>
|
|
162
135
|
);
|
|
163
136
|
};
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
useTracking,
|
|
10
10
|
} from '@strapi/helper-plugin';
|
|
11
11
|
import { Layer, Pencil } from '@strapi/icons';
|
|
12
|
-
import InformationBox from 'ee_else_ce/content-manager/pages/EditView/InformationBox';
|
|
13
12
|
import PropTypes from 'prop-types';
|
|
14
13
|
import { useIntl } from 'react-intl';
|
|
15
14
|
import { useSelector } from 'react-redux';
|
|
16
15
|
import { useLocation } from 'react-router-dom';
|
|
17
16
|
|
|
17
|
+
import { useEnterprise } from '../../../hooks/useEnterprise';
|
|
18
18
|
import { selectAdminPermissions } from '../../../pages/App/selectors';
|
|
19
19
|
import { InjectionZone } from '../../../shared/components';
|
|
20
20
|
import CollectionTypeFormWrapper from '../../components/CollectionTypeFormWrapper';
|
|
@@ -29,6 +29,7 @@ import DraftAndPublishBadge from './DraftAndPublishBadge';
|
|
|
29
29
|
import GridRow from './GridRow';
|
|
30
30
|
import Header from './Header';
|
|
31
31
|
import { useOnce } from './hooks/useOnce';
|
|
32
|
+
import { InformationBoxCE } from './InformationBox';
|
|
32
33
|
import { selectCurrentLayout, selectAttributesLayout, selectCustomFieldUids } from './selectors';
|
|
33
34
|
import { getFieldsActionMatchingPermissions } from './utils';
|
|
34
35
|
|
|
@@ -42,6 +43,12 @@ const EditView = ({ allowedActions, isSingleType, goBack, slug, id, origin, user
|
|
|
42
43
|
const permissions = useSelector(selectAdminPermissions);
|
|
43
44
|
const location = useLocation();
|
|
44
45
|
const toggleNotification = useNotification();
|
|
46
|
+
const Information = useEnterprise(
|
|
47
|
+
InformationBoxCE,
|
|
48
|
+
async () =>
|
|
49
|
+
(await import('../../../../../ee/admin/content-manager/pages/EditView/InformationBox'))
|
|
50
|
+
.InformationBoxEE
|
|
51
|
+
);
|
|
45
52
|
|
|
46
53
|
useOnce(() => {
|
|
47
54
|
/**
|
|
@@ -91,6 +98,11 @@ const EditView = ({ allowedActions, isSingleType, goBack, slug, id, origin, user
|
|
|
91
98
|
return <LoadingIndicatorPage />;
|
|
92
99
|
}
|
|
93
100
|
|
|
101
|
+
// wait until the EE component is fully loaded before rendering, to prevent flickering
|
|
102
|
+
if (!Information) {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
|
|
94
106
|
return (
|
|
95
107
|
<DataManagementWrapper allLayoutData={layout} slug={slug} id={id} origin={origin}>
|
|
96
108
|
{({
|
|
@@ -202,7 +214,7 @@ const EditView = ({ allowedActions, isSingleType, goBack, slug, id, origin, user
|
|
|
202
214
|
paddingTop={6}
|
|
203
215
|
shadow="tableShadow"
|
|
204
216
|
>
|
|
205
|
-
<
|
|
217
|
+
<Information />
|
|
206
218
|
<InjectionZone area="contentManager.editView.informations" />
|
|
207
219
|
</Box>
|
|
208
220
|
<Box as="aside" aria-labelledby="links">
|