mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(dom) goToDirectory
This commit is contained in:
parent
60fb02f387
commit
b972b5eff3
1 changed files with 6 additions and 5 deletions
|
|
@ -1082,12 +1082,13 @@ function CmdProto() {
|
|||
const path = CurrentInfo.dirPath;
|
||||
const Dialog = DOM.Dialog;
|
||||
const cancel = false;
|
||||
|
||||
Dialog.prompt(TITLE, msg, path, {cancel}).then((path) => {
|
||||
CloudCmd.loadDir({
|
||||
path: path
|
||||
});
|
||||
const setPath = (path) => ({
|
||||
path
|
||||
});
|
||||
|
||||
Dialog.prompt(TITLE, msg, path, {cancel})
|
||||
.then(setPath)
|
||||
.then(CloudCmd.loadDir);
|
||||
},
|
||||
|
||||
this.duplicatePanel = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue