mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) lint
This commit is contained in:
parent
69c8eecaf1
commit
3ba6d4ae53
7 changed files with 10 additions and 20 deletions
|
|
@ -830,7 +830,6 @@ module.exports.updateCurrentInfo = (currentFile) => {
|
|||
info.isDir = DOM.isCurrentIsDir();
|
||||
info.isSelected = DOM.isSelected(current);
|
||||
info.panelPosition = DOM.getPanel().dataset.name.replace('js-', '');
|
||||
info.isOnePanel =
|
||||
info.panel.getAttribute('data-name') ===
|
||||
info.isOnePanel = info.panel.getAttribute('data-name') ===
|
||||
info.panelPassive.getAttribute('data-name');
|
||||
};
|
||||
|
|
|
|||
|
|
@ -228,8 +228,7 @@ function onAuthChange(checked) {
|
|||
const elUsername = input.getElementByName('username', Element);
|
||||
const elPassword = input.getElementByName('password', Element);
|
||||
|
||||
elUsername.disabled =
|
||||
elPassword.disabled = !checked;
|
||||
elUsername.disabled = elPassword.disabled = !checked;
|
||||
}
|
||||
|
||||
function onNameChange(name) {
|
||||
|
|
|
|||
|
|
@ -31,8 +31,7 @@ CloudCmd.sortPanel = (name, panel = getPanel()) => {
|
|||
order[position] = 'asc';
|
||||
}
|
||||
|
||||
sortPrevious =
|
||||
sort[position] = name;
|
||||
sortPrevious = sort[position] = name;
|
||||
|
||||
const noCurrent = position !== Info.panelPosition;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue