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

Cannot hide result actions on result listing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 10.10-HF26
    • Fix Version/s: None
    • Component/s: Web UI

      Description

      When using nuxeo-result element (https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/nuxeo-results/nuxeo-results.html), the result actions are still displayed even if hideContentViewActions attribute is set to true (CSV export, Spreadsheet editor and the different result views are visible, even after hard refresh).

      Here is a sample of code:

      <nuxeo-results id="results"
                         display-mode="table"
                         name="[[document.uid]]"
                         nx-provider="nxProvider"
                         selected-items="{{selectedItems}}"
                         document="[[document]]"
                         display-quick-filters
                         display-sort="[[_canSort(document, sortOptions)]]"
                         sort-options="[[sortOptions]]"
                         role="widget"
                         hide-content-view-actions>      <nuxeo-data-table name="table" icon="nuxeo:view-list"
                              class="results"
                              on-row-clicked="_navigate"
                              draggable$="[[_hasWritePermission(document)]]" drop-target-filter="[[_dropTargetFilter]]">
              
              <nuxeo-data-table-column field="dc:title">
                <template>          
                  <nuxeo-document-thumbnail document="[[item]]"></nuxeo-document-thumbnail>
                  <a class="ellipsis" href$="[[urlFor('browse', item.path)]]" on-click="_navigate">[[item.title]]</a>
                </template>
              </nuxeo-data-table-column>
                
            </nuxeo-data-table>
          </nuxeo-results>
      

      Consequently, it creates useless space on the card.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gcarlin Gregory Carlin
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: