Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BasicUI] icon.png minimal fix #2232

Merged
merged 1 commit into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 @@ -943,7 +943,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