@jupyter-notebook/application-extension 7.0.0-alpha.10 → 7.0.0-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +10 -5
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -191,16 +191,21 @@ const pages = {
191
191
  window.open(`${baseUrl}lab`);
192
192
  }
193
193
  });
194
+ const page = PageConfig.getOption('notebookPage');
194
195
  app.commands.addCommand(CommandIDs.openTree, {
195
- label: trans.__('Open Files'),
196
+ label: trans.__('File Browser'),
196
197
  execute: () => {
197
- window.open(`${baseUrl}tree`);
198
+ if (page === 'tree') {
199
+ app.commands.execute('filebrowser:activate');
200
+ }
201
+ else {
202
+ window.open(`${baseUrl}tree`);
203
+ }
198
204
  }
199
205
  });
200
206
  if (palette) {
201
- [CommandIDs.openLab, CommandIDs.openTree].forEach(command => {
202
- palette.addItem({ command, category: 'View' });
203
- });
207
+ palette.addItem({ command: CommandIDs.openLab, category: 'View' });
208
+ palette.addItem({ command: CommandIDs.openTree, category: 'View' });
204
209
  }
205
210
  }
206
211
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyter-notebook/application-extension",
3
- "version": "7.0.0-alpha.10",
3
+ "version": "7.0.0-alpha.11",
4
4
  "description": "Jupyter Notebook - Application Extension",
5
5
  "homepage": "https://github.com/jupyter/notebook",
6
6
  "bugs": {
@@ -39,8 +39,8 @@
39
39
  "watch": "tsc -b --watch"
40
40
  },
41
41
  "dependencies": {
42
- "@jupyter-notebook/application": "^7.0.0-alpha.10",
43
- "@jupyter-notebook/ui-components": "^7.0.0-alpha.10",
42
+ "@jupyter-notebook/application": "^7.0.0-alpha.11",
43
+ "@jupyter-notebook/ui-components": "^7.0.0-alpha.11",
44
44
  "@jupyterlab/application": "^4.0.0-alpha.17",
45
45
  "@jupyterlab/apputils": "^4.0.0-alpha.17",
46
46
  "@jupyterlab/celltags": "^4.0.0-alpha.17",