aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Dahlström <johannesd@vaadin.com>2014-02-26 15:22:33 +0200
committerJuho Nurminen <juho@vaadin.com>2014-02-27 14:39:38 +0000
commit7faa1f21c9c3aaf13264a38284c8aa329cf8d93b (patch)
tree41594226a4bac24492aeb800e0bad4138b24585e
parent9dd8754fa8a24451a07002b248c4775378e30b3e (diff)
downloadvaadin-framework-7faa1f21c9c3aaf13264a38284c8aa329cf8d93b.tar.gz
vaadin-framework-7faa1f21c9c3aaf13264a38284c8aa329cf8d93b.zip
Support font icons in Notifications (#13373)
Change-Id: I2e721bd80cae7d0ea15a623cfd1cf0778399efb2
-rw-r--r--client/src/com/vaadin/client/ui/VNotification.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/client/src/com/vaadin/client/ui/VNotification.java b/client/src/com/vaadin/client/ui/VNotification.java
index 128de0a285..4748df4e62 100644
--- a/client/src/com/vaadin/client/ui/VNotification.java
+++ b/client/src/com/vaadin/client/ui/VNotification.java
@@ -442,11 +442,9 @@ public class VNotification extends VOverlay {
.hasAttribute(UIConstants.NOTIFICATION_HTML_CONTENT_NOT_ALLOWED);
String html = "";
if (notification.hasAttribute(UIConstants.ATTRIBUTE_NOTIFICATION_ICON)) {
- final String parsedUri = client
- .translateVaadinUri(notification
- .getStringAttribute(UIConstants.ATTRIBUTE_NOTIFICATION_ICON));
- html += "<img src=\"" + Util.escapeAttribute(parsedUri)
- + "\" alt=\"\" />";
+ String iconUri = notification
+ .getStringAttribute(UIConstants.ATTRIBUTE_NOTIFICATION_ICON);
+ html += client.getIcon(iconUri).getElement().getString();
}
if (notification
.hasAttribute(UIConstants.ATTRIBUTE_NOTIFICATION_CAPTION)) {