Skip to content
Snippets Groups Projects
Commit 75097487 authored by Neuber, Eugen Ramon's avatar Neuber, Eugen Ramon :speech_balloon: Committed by Reiter, Christoph
Browse files

Add vpu-icon to notification message

parent ca67dae4
No related branches found
No related tags found
No related merge requests found
......@@ -43,13 +43,15 @@ class VPUNotification extends VPULitElement {
const body = typeof e.detail.body !== 'undefined' ? e.detail.body : "";
const summary = typeof e.detail.summary !== 'undefined' ? e.detail.summary : "";
const timeout = typeof e.detail.timeout !== 'undefined' ? e.detail.timeout : 0;
const icon = typeof e.detail.icon !== 'undefined' ? e.detail.icon : '';
const iconHTML = icon !== '' ? `<vpu-icon name="${icon}"></vpu-icon>` : "";
const summaryHTML = summary !== "" ? `<h3>${summary}</h3>` : "";
that.notificationBlock.innerHTML = `
<div id="${notificationId}" class="notification is-${type}">
<button id="${notificationId}-button" onclick="parentNode.parentNode.removeChild(parentNode)" class="delete"></button>
${summaryHTML}
${body}
${iconHTML} ${body}
</div>
` + that.notificationBlock.innerHTML;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment