mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
chore: lint
This commit is contained in:
parent
05ef0ae452
commit
14d9618a64
3 changed files with 6 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue