-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 9.10
-
Component/s: Web UI
-
Release Notes Summary:Add to clipboard action availability moved to action contribution
-
Backlog priority:1,000
-
Browser:
-
Sprint:nxGang Sprint 10.2.9
-
Story Points:1
https://github.com/nuxeo/nuxeo-web-ui/blob/9.10/elements/nuxeo-document-actions/nuxeo-clipboard-toggle-button.html#L82 hardcodes the fact that the action is available for document not having the NotCollectionMember facet which is structurally not a requirement (the clipboard is is implemented client side and leverages the browser's localstorage).
Some people may, therefore, override the action availability.
We should use a nuxeo-filter in https://github.com/nuxeo/nuxeo-web-ui/blob/9.10/elements/nuxeo-web-ui-bundle.html#L236 such as:
<nuxeo-slot-content name="clipboardToggleDocumentAction" slot="DOCUMENT_ACTIONS" order="60"> <template> <nuxeo-filter document="[[document]]" expression="document.facets.indexOf('NotCollectionMember') === -1"> <template> <nuxeo-clipboard-toggle-button document="[[document]]" clipboard="[[clipboard]]"></nuxeo-clipboard-toggle-button> </template> </nuxeo-filter> <nuxeo-clipboard-toggle-button document="[[document]]" clipboard="[[clipboard]]"></nuxeo-clipboard-toggle-button> </template> </nuxeo-slot-content>
- is related to
-
NXP-25340 Fix adding document to clipboard
- Resolved