fixed lint style issue

This commit is contained in:
joey 2020-03-14 12:17:53 -04:00
parent 6be53ecabe
commit 100efce244

View file

@ -1350,7 +1350,7 @@ Logic.registerPanel(P_CONTAINER_DELETE, {
} }
// Populating the panel: name, icon, and warning message // Populating the panel: name, icon, and warning message
// reset the content of confirm page. // reset the content of confirm page.
document.getElementById("delete-container-tab-warning").textContent = ``; document.getElementById("delete-container-tab-warning").textContent = "";
// count number of affected tabs // count number of affected tabs
for (let i = 0; i < currentSelection.length; i++) { for (let i = 0; i < currentSelection.length; i++) {
const identity = currentSelection[i]; const identity = currentSelection[i];
@ -1362,16 +1362,16 @@ Logic.registerPanel(P_CONTAINER_DELETE, {
if (currentSelection.length === 1 ) { if (currentSelection.length === 1 ) {
document.getElementById("delete-container-name").textContent = currentSelection[0].name; document.getElementById("delete-container-name").textContent = currentSelection[0].name;
// update icon style for single deletion // update icon style for single deletion
icon.style.visibility = 'visible'; icon.style.visibility = "visible";
icon.style.marginLeft = `0px`; icon.style.marginLeft = "0px";
icon.setAttribute("data-identity-icon", currentSelection[0].icon); icon.setAttribute("data-identity-icon", currentSelection[0].icon);
icon.setAttribute("data-identity-color", currentSelection[0].color); icon.setAttribute("data-identity-color", currentSelection[0].color);
containerString = "this container"; containerString = "this container";
} else { } else {
// update icon for multiple deletion // update icon for multiple deletion
icon.style.visibility = 'hidden'; icon.style.visibility = "hidden";
icon.style.marginLeft = `-16px`; icon.style.marginLeft = "-16px";
document.getElementById("delete-container-name").textContent = `Containers`; document.getElementById("delete-container-name").textContent = "Containers";
containerString = "this " + currentSelection.length + " containers"; containerString = "this " + currentSelection.length + " containers";
} }
let warningMessage = ""; let warningMessage = "";