@punch-in/strapi-admin 1.2.12 → 1.2.13
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.
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/* eslint-disable consistent-return */
|
|
2
2
|
import produce from 'immer';
|
|
3
|
-
import { SETTINGS_BASE_URL } from '../../config';
|
|
4
|
-
import adminPermissions from '../../permissions';
|
|
5
3
|
import {
|
|
6
4
|
SET_CT_OR_ST_LINKS,
|
|
7
5
|
SET_SECTION_LINKS,
|
|
@@ -11,34 +9,12 @@ import {
|
|
|
11
9
|
|
|
12
10
|
const initialState = {
|
|
13
11
|
collectionTypesSectionLinks: [],
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
permissions: adminPermissions.marketplace.main,
|
|
21
|
-
notificationsCount: 0,
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
icon: 'shopping-basket',
|
|
25
|
-
label: 'app.components.LeftMenuLinkContainer.installNewPlugin',
|
|
26
|
-
destination: '/marketplace',
|
|
27
|
-
isDisplayed: false,
|
|
28
|
-
permissions: adminPermissions.marketplace.main,
|
|
29
|
-
notificationsCount: 0,
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
icon: 'cog',
|
|
33
|
-
label: 'app.components.LeftMenuLinkContainer.settings',
|
|
34
|
-
isDisplayed: false,
|
|
35
|
-
destination: SETTINGS_BASE_URL,
|
|
36
|
-
// Permissions of this link are retrieved in the init phase
|
|
37
|
-
// using the settings menu
|
|
38
|
-
permissions: [],
|
|
39
|
-
notificationsCount: 0,
|
|
40
|
-
},
|
|
41
|
-
],
|
|
12
|
+
// Modules (list-plugins), Marketplace, and Settings links removed from the
|
|
13
|
+
// left nav's general section - LeftMenu/index.js skips rendering that
|
|
14
|
+
// section entirely once this is empty, and getGeneralLinks.js's
|
|
15
|
+
// settings-link lookup already returns [] when it finds none, so this is
|
|
16
|
+
// a self-contained change with no other call sites to update.
|
|
17
|
+
generalSectionLinks: [],
|
|
42
18
|
singleTypesSectionLinks: [],
|
|
43
19
|
pluginsSectionLinks: [],
|
|
44
20
|
isLoading: true,
|
package/package.json
CHANGED