An override of the delete button (override of slot content), which renders properly when using a single browser tab, does not get rendered when navigating to another document in a second browser tab. A page refresh is necessary to get the button override rendered properly.
This happens with Chrome only.
How to reproduce:
- in Studio Modeler, create a new XML extension with the following XML:
<extension target="org.nuxeo.ecm.platform.WebResources" point="resources"> <resource name="nuxeo-web-ui-override-delete-button.html" type="import" shrinkable="false"> <uri>/ui/override-nuxeo-delete-document.html</uri> </resource> </extension> <extension target="org.nuxeo.ecm.platform.WebResources" point="bundles"> <bundle name="web-ui"> <resources append="true"> <resource>nuxeo-web-ui-override-delete-button.html</resource> </resources> </bundle> </extension>
- in Studio Designer, create a file named override-nuxeo-delete-document.html under UI in the RESOURCES tab with the following HTML:
<nuxeo-slot-content name="deleteDocumentAction" slot="DOCUMENT_ACTIONS" order="15" priority="100"> <template> <nuxeo-filter document="[[document]]" user="[[user]]"> <template> <nuxeo-delete-document-button document="[[document]]" hard></nuxeo-delete-document-button> </template> </nuxeo-filter> </template> </nuxeo-slot-content>
- deploy (make sure to restart the Nuxeo instance in order to avoid any hot reload misbehavior interference)
- log in the Web UI
- create a workspace, then a File document in it. Navigate to the File document. Note the delete button is properly rendered (trash with cross icon)
- ctrl-click on the parent workspace's link in the breadcrumb to open it in a new browser tab
Expected result: the delete button with the trash with cross icon (i.e. the override is loaded) is rendered properly
Actual result: the delete button with the default icon is rendered i.e. the override is not applied. A page refresh is needed for the override to be applied
- duplicates
-
ELEMENTS-1096 Fix inconsistent rendering of override of a slot content in Chrome
- Resolved
- is related to
-
ELEMENTS-1096 Fix inconsistent rendering of override of a slot content in Chrome
- Resolved
-
NXS-5527 Overriding existing slot contribs in designer does not work consistently
- Resolved