Merge PR #3014 into 17.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2024-12-12 08:44:44 +00:00

View File

@@ -8,6 +8,11 @@
export function getWebIconData(menu) {
const result = "/web_responsive/static/img/default_icon_app.png";
const webIcon = menu.webIcon;
if (webIcon && webIcon.split(",").length === 2) {
const path = webIcon.replace(",", "/");
return path.startsWith("/") ? path : "/" + path;
}
const iconData = menu.webIconData;
if (!iconData) {
return result;