@eeacms/volto-marine-policy 2.0.18 → 2.0.20

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/CHANGELOG.md CHANGED
@@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ ### [2.0.20](https://github.com/eea/volto-marine-policy/compare/2.0.19...2.0.20) - 25 August 2025
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - fix NIS [laszlocseh - [`016f9b4`](https://github.com/eea/volto-marine-policy/commit/016f9b4f65e14f9fdd5a39e6779c99f7d96e2b0f)]
12
+ ### [2.0.19](https://github.com/eea/volto-marine-policy/compare/2.0.18...2.0.19) - 25 August 2025
13
+
14
+ #### :house: Internal changes
15
+
16
+ - style: Automated code fix [eea-jenkins - [`de9990e`](https://github.com/eea/volto-marine-policy/commit/de9990e8922e4f56f97cc7a84c081a4597ab8ee7)]
17
+
18
+ #### :hammer_and_wrench: Others
19
+
20
+ - fix NIS [laszlocseh - [`cf15edd`](https://github.com/eea/volto-marine-policy/commit/cf15eddc8efe127bf29c6a5ed77e86a0a605fa90)]
7
21
  ### [2.0.18](https://github.com/eea/volto-marine-policy/compare/2.0.17...2.0.18) - 22 August 2025
8
22
 
9
23
  #### :house: Internal changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-marine-policy",
3
- "version": "2.0.18",
3
+ "version": "2.0.20",
4
4
  "description": "@eeacms/volto-marine-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -10,15 +10,12 @@ import { Checkbox } from 'semantic-ui-react';
10
10
  import { Button, Select } from 'semantic-ui-react';
11
11
 
12
12
  const NISListingView = ({ items, isEditMode }) => {
13
- // console.log(items);
14
13
  const [selectedItems, setSelectedItems] = useState([]);
15
14
  const [users, setUsers] = useState([]);
16
15
  const [assignee, setAssignee] = useState(null);
17
- const content = useSelector((state) => state.content.data);
18
- const canEditPage = content?.['@components']?.actions?.object?.some(
19
- (action) => action.id === 'edit',
20
- );
21
- // console.log('canEditPage', canEditPage);
16
+ const actions = useSelector((state) => state.actions.actions);
17
+ const canEditPage = actions?.object?.some((action) => action.id === 'edit');
18
+ // console.log('actions', actions);
22
19
 
23
20
  const toggleSelection = (id) => {
24
21
  setSelectedItems((prev) =>
@@ -33,7 +30,7 @@ const NISListingView = ({ items, isEditMode }) => {
33
30
  };
34
31
 
35
32
  const onBulkAssign = async (ids, assignee) => {
36
- await fetch(`${window.location.origin}/++api++/@bulk-assign`, {
33
+ await fetch(`${window.location.origin}/marine/++api++/@bulk-assign`, {
37
34
  method: 'POST',
38
35
  headers: {
39
36
  'Content-Type': 'application/json',