From 14d9618a6439f2ff39dc75bb5f4c8a868baf3c3a Mon Sep 17 00:00:00 2001 From: coderiaser Date: Fri, 14 Jun 2024 22:33:14 +0300 Subject: [PATCH] chore: lint --- client/modules/config/index.js | 3 ++- client/modules/edit-names.js | 4 ++-- client/sort.js | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/client/modules/config/index.js b/client/modules/config/index.js index cdd18da1..0ec5b100 100644 --- a/client/modules/config/index.js +++ b/client/modules/config/index.js @@ -225,7 +225,8 @@ function onAuthChange(checked) { const elUsername = input.getElementByName('username', Element); const elPassword = input.getElementByName('password', Element); - elUsername.disabled = elPassword.disabled = !checked; + elUsername.disabled = !checked; + elPassword.disabled = !checked; } function onNameChange(name) { diff --git a/client/modules/edit-names.js b/client/modules/edit-names.js index e1cc3cbe..c0b9ae84 100644 --- a/client/modules/edit-names.js +++ b/client/modules/edit-names.js @@ -63,9 +63,9 @@ async function keyListener(event) { const ctrlMeta = ctrl || meta; const {Key} = CloudCmd; - if (ctrlMeta && event.keyCode === Key.S) + if (ctrlMeta && event.keyCode === Key.S) { hide(); - else if (ctrlMeta && event.keyCode === Key.P) { + } else if (ctrlMeta && event.keyCode === Key.P) { const [, pattern] = await Dialog.prompt('Apply pattern:', '[n][e]'); pattern && applyPattern(pattern); } diff --git a/client/sort.js b/client/sort.js index 863c8379..cf9fb4a4 100644 --- a/client/sort.js +++ b/client/sort.js @@ -20,8 +20,8 @@ CloudCmd.sortPanel = (name, panel = getPanel()) => { else order[position] = 'asc'; - sortPrevious = sort[position] = name; - + sortPrevious = name; + sort[position] = name; const noCurrent = position !== Info.panelPosition; CloudCmd.refresh({