Fix toolbar actions not getting their icons displayed when the toolbar is being opened from its none origin apps

This commit is contained in:
hadi 2023-04-19 17:50:57 +02:00
parent aac751f864
commit 2e570a0343
2 changed files with 10 additions and 10 deletions

View File

@ -415,7 +415,7 @@ egwAction.prototype.updateActions = function(_actions, _app)
if (typeof elem.icon == "undefined") elem.icon = this.defaultIcons[elem.id]; if (typeof elem.icon == "undefined") elem.icon = this.defaultIcons[elem.id];
if (typeof elem.icon != "undefined") if (typeof elem.icon != "undefined")
{ {
elem.iconUrl = egw.image(elem.icon); elem.iconUrl = egw.image(elem.icon, _app);
} }
delete elem.icon; delete elem.icon;
} }

View File

@ -73,6 +73,7 @@ egw.extend('images', egw.MODULE_GLOBAL, function()
// If the application name is not given, set it to the name of // If the application name is not given, set it to the name of
// current application // current application
_app = this.getAppName(); _app = this.getAppName();
}
// Handle images in appname/imagename format // Handle images in appname/imagename format
if(_name.indexOf('/') > 0) if(_name.indexOf('/') > 0)
@ -85,7 +86,6 @@ egw.extend('images', egw.MODULE_GLOBAL, function()
_name = split[1]; _name = split[1];
} }
} }
}
// own instance specific images in vfs have highest precedence // own instance specific images in vfs have highest precedence
tries['vfs']=_name; tries['vfs']=_name;