refactor(dom) goToDirectory

This commit is contained in:
coderaiser 2018-01-19 14:57:27 +02:00
parent 60fb02f387
commit b972b5eff3

View file

@ -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 = () => {