mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
chore: lint
This commit is contained in:
parent
93aa7278b7
commit
75bf8a1275
14 changed files with 21 additions and 33 deletions
|
|
@ -16,14 +16,12 @@ const {getPanel} = DOM;
|
|||
CloudCmd.sortPanel = (name, panel = getPanel()) => {
|
||||
const position = panel.dataset.name.replace('js-', '');
|
||||
|
||||
if (name !== sortPrevious) {
|
||||
if (name !== sortPrevious)
|
||||
order[position] = 'asc';
|
||||
else if (order[position] === 'asc')
|
||||
order[position] = 'desc';
|
||||
else
|
||||
order[position] = 'asc';
|
||||
} else {
|
||||
if (order[position] === 'asc')
|
||||
order[position] = 'desc';
|
||||
else
|
||||
order[position] = 'asc';
|
||||
}
|
||||
|
||||
sortPrevious = sort[position] = name;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue