Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
Add linkintegritycheck to our customization
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiggr committed Nov 7, 2022
1 parent 9660a8c commit 85e78d1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/customizations/volto/actions/content/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
UPDATECOLUMNS_CONTENT,
LOCK_CONTENT,
UNLOCK_CONTENT,
LINK_INTEGRITY_CHECK,
} from '@plone/volto/constants/ActionTypes';
import { nestContent } from '@plone/volto/helpers';
import config from '@plone/volto/registry';
Expand Down Expand Up @@ -250,3 +251,14 @@ export function unlockContent(urls, force = false) {
})),
};
}

export function linkIntegrityCheck(selection) {
return {
type: LINK_INTEGRITY_CHECK,
mode: 'serial',
request: {
op: 'get',
path: '@linkintegrity?' + selection.map((uid) => `uids=${uid}`).join('&'),
},
};
}

0 comments on commit 85e78d1

Please sign in to comment.