@ale-rainbow/rainbow-notification
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -7,3 +7,3 @@ export declare class RainbowNotificationAction { | ||
choice: any[]; | ||
choiceTitlelabel: string; | ||
choiceTitleLabel: string; | ||
choiceCloseLabel: string; | ||
@@ -10,0 +10,0 @@ choiceHandler: any; |
@@ -5,3 +5,3 @@ "use strict"; | ||
constructor() { | ||
this.choiceTitlelabel = null; | ||
this.choiceTitleLabel = null; | ||
this.handler = null; | ||
@@ -68,3 +68,3 @@ this.focus = false; | ||
if (action.choice) { | ||
const choiceTitle = action.choiceTitlelabel ? `${action.choiceTitlelabel}` : ''; | ||
const choiceTitle = action.choiceTitleLabel ? `<div id='choiceTitle' class='extCallNotif__choice-title'>${action.choiceTitleLabel}</div>` : ''; | ||
let choices = action.choice.reduce((buff, choice) => { | ||
@@ -95,8 +95,10 @@ return buff + `<div id='${choice.id}' class='extCallNotif__choice'>${choice.label}</div>`; | ||
document.getElementById(`callNotif_choice_${this.id}_${action.name}`).childNodes.forEach((choiceElem) => { | ||
if (choiceElem.id.includes('callNotif_choice_close')) { | ||
choiceElem[methodName]('click', action.toogleChoice(this)); | ||
if (choiceElem.id !== 'choiceTitle') { | ||
if (choiceElem.id.includes('callNotif_choice_close')) { | ||
choiceElem[methodName]('click', action.toogleChoice(this)); | ||
} | ||
else { | ||
choiceElem[methodName]('click', action.choiceAction(choiceElem.id)); | ||
} | ||
} | ||
else { | ||
choiceElem[methodName]('click', action.choiceAction(choiceElem.id)); | ||
} | ||
}); | ||
@@ -103,0 +105,0 @@ } |
{ | ||
"name": "@ale-rainbow/rainbow-notification", | ||
"version": "v1.0.8", | ||
"version": "v1.0.9", | ||
"description": "Alcatel-Lucent Enterprise Rainbow Notification", | ||
@@ -5,0 +5,0 @@ "main": "./dist/rainbowNotification.js", |
@@ -8,3 +8,3 @@ export class RainbowNotificationAction { | ||
public choice: any[]; | ||
public choiceTitlelabel: string = null; | ||
public choiceTitleLabel: string = null; | ||
public choiceCloseLabel: string; | ||
@@ -76,3 +76,3 @@ public choiceHandler: any; | ||
if (action.choice) { | ||
const choiceTitle = action.choiceTitlelabel ? `${action.choiceTitlelabel}` : ''; | ||
const choiceTitle = action.choiceTitleLabel ? `<div id='choiceTitle' class='extCallNotif__choice-title'>${action.choiceTitleLabel}</div>` : ''; | ||
let choices = action.choice.reduce((buff: string, choice: any) => { | ||
@@ -102,4 +102,6 @@ return buff + `<div id='${choice.id}' class='extCallNotif__choice'>${choice.label}</div>`; | ||
document.getElementById(`callNotif_choice_${this.id}_${action.name}`).childNodes.forEach((choiceElem: any) => { | ||
if (choiceElem.id.includes('callNotif_choice_close')) { choiceElem[methodName]('click', action.toogleChoice(this)); } | ||
else { choiceElem[methodName]('click', action.choiceAction(choiceElem.id)); } | ||
if (choiceElem.id !== 'choiceTitle') { | ||
if (choiceElem.id.includes('callNotif_choice_close')) { choiceElem[methodName]('click', action.toogleChoice(this)); } | ||
else { choiceElem[methodName]('click', action.choiceAction(choiceElem.id)); } | ||
} | ||
}); | ||
@@ -106,0 +108,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
21263
528