mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
refactor(opearation) destructuring
This commit is contained in:
parent
196b72448d
commit
895e34856d
1 changed files with 5 additions and 2 deletions
|
|
@ -465,8 +465,11 @@ function OperationProto(operation, data) {
|
|||
|
||||
operation(files, (error) => {
|
||||
!error && DOM.Storage.remove(from, () => {
|
||||
const panel = Info.panel;
|
||||
const panelPassive = Info.panelPassive;
|
||||
const {
|
||||
panel,
|
||||
panelPassive,
|
||||
} = Info;
|
||||
|
||||
const setCurrent = () => {
|
||||
const currentName = name || data.names[0];
|
||||
DOM.setCurrentByName(currentName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue