@ale-rainbow/rainbow-notification
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -28,2 +28,3 @@ export declare class RainbowNotificationAction { | ||
actions: RainbowNotificationAction[]; | ||
iconPath: string; | ||
static create(config: any): RainbowNotification; | ||
@@ -30,0 +31,0 @@ getHTMLContent(): string; |
@@ -45,2 +45,3 @@ "use strict"; | ||
this.actions = null; | ||
this.iconPath = 'resources/svg_dist'; | ||
} | ||
@@ -69,3 +70,3 @@ static create(config) { | ||
} | ||
const icon = action.icon ? `<svg class='extCallNotif__icon' draggable='false'><use xlink:href='resources/svg_dist/sprite.svg#${action.icon}'></use></svg>` : ''; | ||
const icon = action.icon ? `<svg class='extCallNotif__icon' draggable='false'><use xlink:href='${this.iconPath}/sprite.svg#${action.icon}'></use></svg>` : ''; | ||
return buffer + `<div id='callNotif_${this.id}_${action.name}' class='extCallNotif__button extCallNotif__button--${action.color}'>${icon}${action.label}</div>`; | ||
@@ -72,0 +73,0 @@ }, ''); |
{ | ||
"name": "@ale-rainbow/rainbow-notification", | ||
"version": "v1.0.1", | ||
"version": "v1.0.2", | ||
"description": "Alcatel-Lucent Enterprise Rainbow Notification", | ||
@@ -5,0 +5,0 @@ "main": "./dist/rainbowNotification.js", |
@@ -52,2 +52,3 @@ export class RainbowNotificationAction { | ||
public actions: RainbowNotificationAction[] = null; | ||
public iconPath: string = 'resources/svg_dist'; | ||
@@ -77,3 +78,3 @@ public static create(config: any) { | ||
} | ||
const icon = action.icon ? `<svg class='extCallNotif__icon' draggable='false'><use xlink:href='resources/svg_dist/sprite.svg#${action.icon}'></use></svg>` : ''; | ||
const icon = action.icon ? `<svg class='extCallNotif__icon' draggable='false'><use xlink:href='${this.iconPath}/sprite.svg#${action.icon}'></use></svg>` : ''; | ||
return buffer + `<div id='callNotif_${this.id}_${action.name}' class='extCallNotif__button extCallNotif__button--${action.color}'>${icon}${action.label}</div>`; | ||
@@ -80,0 +81,0 @@ }, ''); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
439
18197