Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-6545

Folders should be displayed in thumbnail view as an icon

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.2.16
    • 6.2.5
    • None
    • None
    • Yes
    • UI Maintenance 4
    • 2

      Steps to reproduce

      1. Open assets app
      2. Open thumbnail view 

      Expected results

      Only assets are shown

      Actual results

      Folders are also shown, which don't show an icon so lots of empty thumbnails appear

      Workaround

      Development notes

      This is happening because when info.magnolia.ui.contentapp.browser.ThumbnailView instantiates info.magnolia.ui.vaadin.layout.LazyThumbnailLayout, it is making use of the configured info.magnolia.ui.contentapp.JcrDataProvider, which retrieves the configuration from the datasource definition, allowedNodeTypes property (mgnl:folder and mgnl:asset)
      On the contrary, in the old assets app, info.magnolia.ui.workbench.thumbnail.JcrThumbnailContainer was used, which includes a specific constraint not to retrieve items of type mgnl:folder

      Final solution

      Folder icons is use as preview for folders.

        Acceptance criteria

              jsarf Jaromir Sarf
              jayala Jonathan Ayala
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: