From db53905cf1e35c2c5d19125b7f457a52a4fc1ae4 Mon Sep 17 00:00:00 2001 From: Lint Action Date: Tue, 21 Jun 2022 15:53:23 +0000 Subject: [PATCH] Fix code style issues with ESLint --- ereuse_devicehub/static/js/main_inventory.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ereuse_devicehub/static/js/main_inventory.js b/ereuse_devicehub/static/js/main_inventory.js index 46b2f61f..9c9b8d0a 100644 --- a/ereuse_devicehub/static/js/main_inventory.js +++ b/ereuse_devicehub/static/js/main_inventory.js @@ -647,14 +647,14 @@ async function processSelectedDevices() { }) listHTML.html(""); - let lot_temporary = lots.filter(lot => !lot.transfer); - appendMenu(lot_temporary, listHTML, templateLot, selectedDevices, actions, 'Temporary'); + const lot_temporary = lots.filter(lot => !lot.transfer); + appendMenu(lot_temporary, listHTML, templateLot, selectedDevices, actions, "Temporary"); - let lot_incoming = lots.filter(lot => lot.transfer && lot.transfer == 'Incoming'); - appendMenu(lot_incoming, listHTML, templateLot, selectedDevices, actions, 'Incoming'); + const lot_incoming = lots.filter(lot => lot.transfer && lot.transfer == "Incoming"); + appendMenu(lot_incoming, listHTML, templateLot, selectedDevices, actions, "Incoming"); - let lot_outgoing = lots.filter(lot => lot.transfer && lot.transfer == 'Outgoing'); - appendMenu(lot_outgoing, listHTML, templateLot, selectedDevices, actions, 'Outgoing'); + const lot_outgoing = lots.filter(lot => lot.transfer && lot.transfer == "Outgoing"); + appendMenu(lot_outgoing, listHTML, templateLot, selectedDevices, actions, "Outgoing"); lotsSearcher.enable(); } catch (error) { @@ -670,6 +670,6 @@ function appendMenu(lots, listHTML, templateLot, selectedDevices, actions, title lotsList.push(lots.filter(lot => lot.state == "false").sort((a, b) => a.name.localeCompare(b.name))); lotsList = lotsList.flat(); // flat array - listHTML.append("
  • " + title + "
  • "); + listHTML.append(`
  • ${ title }
  • `); lotsList.forEach(lot => templateLot(lot, selectedDevices, listHTML, actions)); }