mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(menu) getUploadTo: remove not working items
This commit is contained in:
parent
7f9acde217
commit
36bb5cd484
1 changed files with 6 additions and 2 deletions
|
|
@ -253,8 +253,12 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO;
|
|||
storage = Util.findObjByNameInArr(modules, 'storage'),
|
||||
items = Util.getNamesFromObjArray(storage) || [];
|
||||
|
||||
items.forEach(function(name) {
|
||||
menu[name] = Util.exec.with(uploadTo, name);
|
||||
items
|
||||
.filter(function(name) {
|
||||
return name === 'FilePicker';
|
||||
})
|
||||
.forEach(function(name) {
|
||||
menu[name] = Util.exec.with(uploadTo, name);
|
||||
});
|
||||
|
||||
callback(menu);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue