Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-28188

Fix inconsistent rendering of override of a slot content when navigating to another document in a second browser tab

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 10.10
    • Fix Version/s: None
    • Component/s: Web UI
    • Tags:
    • Backlog priority:
      1,001
    • Browser:
    • Sprint:
      nxGang Sprint 11.1.21
    • Story Points:
      3

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 15 minutes
                  1h 15m