mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 11:29:58 +01:00
fix not displayed images in tree in admin, as they already contained an absolute path or full url
This commit is contained in:
parent
f8a8cf69dc
commit
bd78cefa3e
@ -871,8 +871,8 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement) implements Fin
|
|||||||
//sl-icon images need to be svgs if there is a png try to find the corresponding svg
|
//sl-icon images need to be svgs if there is a png try to find the corresponding svg
|
||||||
img = img.replace(".png", ".svg");
|
img = img.replace(".png", ".svg");
|
||||||
}
|
}
|
||||||
//append image path if it was not set by the server already
|
//append image path, if img is only relative (does not start with / or https://)
|
||||||
if (!img.startsWith(this.imagePath))
|
if (!img.match(/^(\/|https?:\/\/)/))
|
||||||
{
|
{
|
||||||
img = this.imagePath + img;
|
img = this.imagePath + img;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user