Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 530578: Import > File or Zip Archive fails if there's no selection
  • Loading branch information
grant-g committed Jan 31, 2018
1 parent 3bd9412 commit 02e59c3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bundles/org.eclipse.orion.client.ui/web/orion/fileCommands.js
Expand Up @@ -1031,7 +1031,9 @@ define(['i18n!orion/navigate/nls/messages', 'orion/webui/littlelib', 'orion/i18n
);
}
},
visibleWhen: checkFolderSelection
visibleWhen: function(item) {
return isFileCreationAtRootEnabled() || checkFolderSelection(item);
}
});
commandService.addCommand(importZipURLCommand);

Expand Down Expand Up @@ -1133,7 +1135,9 @@ define(['i18n!orion/navigate/nls/messages', 'orion/webui/littlelib', 'orion/i18n
fileInput.parentNode.replaceChild(cloneInput, fileInput);

},
visibleWhen: checkFolderSelection
visibleWhen: function(item) {
return isFileCreationAtRootEnabled() || checkFolderSelection(item);
}
});
commandService.addCommand(importCommand);

Expand Down

0 comments on commit 02e59c3

Please sign in to comment.