mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(menu) set current file after upload from cloud
This commit is contained in:
parent
7b240cab34
commit
b13f1f4de7
1 changed files with 5 additions and 1 deletions
|
|
@ -250,9 +250,13 @@ function MenuProto(position) {
|
|||
|
||||
CloudCmd.execFromModule('Cloud', 'saveFile', (name, data) => {
|
||||
const path = DOM.getCurrentDirPath() + name;
|
||||
const setCurrent = () => DOM.setCurrentByName(name);
|
||||
|
||||
RESTful.write(path, data, (error) => {
|
||||
!error && CloudCmd.refresh();
|
||||
if (error)
|
||||
return;
|
||||
|
||||
CloudCmd.refresh(null, setCurrent);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue