Skip to content

Commit

Permalink
[BasicUI] icon.png minimal fix (#2232)
Browse files Browse the repository at this point in the history
See comment
#2231 (comment)

This is the minimal fix to the issue.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
  • Loading branch information
mherwege authored and lolodomo committed Jan 2, 2024
1 parent 1b00929 commit 2fd7b51
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public ChartRenderer(final BundleContext bundleContext, final @Reference Transla

private final Logger logger = LoggerFactory.getLogger(ChartRenderer.class);

private static final String URL_NONE_ICON = "/icon/none.svg";
private static final String URL_NONE_ICON = "images/none.png";

@Override
public boolean canRender(Widget w) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
@NonNullByDefault
public class ImageRenderer extends AbstractWidgetRenderer {

private static final String URL_NONE_ICON = "/icon/none.svg";
private static final String URL_NONE_ICON = "images/none.png";

@Activate
public ImageRenderer(final BundleContext bundleContext, final @Reference TranslationProvider i18nProvider,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
@NonNullByDefault
public class VideoRenderer extends AbstractWidgetRenderer {

private static final String URL_NONE_ICON = "/icon/none.svg";
private static final String URL_NONE_ICON = "images/none.png";

@Activate
public VideoRenderer(final BundleContext bundleContext, final @Reference TranslationProvider i18nProvider,
Expand Down
6 changes: 3 additions & 3 deletions bundles/org.openhab.ui.basic/web-src/smarthome.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@
var
_t = this,
suppress = false,
noneImageSrc = "/icon/none.svg";
noneImageSrc = "images/none.png";

_t.parentNode = parentNode;
if (_t.formRow === undefined) {
Expand Down Expand Up @@ -697,7 +697,7 @@
var
_t = this,
interval = null,
urlNoneIcon = "/icon/none.svg";
urlNoneIcon = "images/none.png";

_t.image = parentNode.querySelector("img");
_t.updateInterval = parseInt(parentNode.getAttribute("data-update-interval"), 10);
Expand Down Expand Up @@ -951,7 +951,7 @@
var
_t = this,
urlMarkerOffIcon = "images/map-marker-off.png",
urlNoneIcon = "/icon/none.svg";
urlNoneIcon = "images/none.png";

_t.iframe = parentNode.querySelector("iframe");
_t.url = parentNode.getAttribute("data-map-url");
Expand Down

0 comments on commit 2fd7b51

Please sign in to comment.