fixes: U4-9654 7.6.0-beta: Legacy icons are not resolved in new listview picker

This commit is contained in:
Mads Rasmussen
2017-03-23 15:00:30 +01:00
parent 2ae236e98d
commit 5a2b4f031b

View File

@@ -1,7 +1,7 @@
(function () {
'use strict';
function MiniListViewDirective(entityResource) {
function MiniListViewDirective(entityResource, iconHelper) {
function link(scope, el, attr, ctrl) {
@@ -19,6 +19,11 @@
function open(node) {
// convert legacy icon for node
if(node && node.icon) {
node.icon = iconHelper.convertFromLegacyIcon(node.icon);
}
goingForward = true;
var miniListView = {
@@ -58,6 +63,11 @@
// update children
miniListView.children = data.items;
_.each(miniListView.children, function(c) {
// convert legacy icon for node
if(c.icon) {
c.icon = iconHelper.convertFromLegacyIcon(c.icon);
}
// set published state for content
if (c.metaData) {
c.hasChildren = c.metaData.HasChildren;
if(scope.entityType === "Document") {