From 459f065e2d9cceee66a719571648c2adc98d1240 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Mon, 28 Feb 2022 18:39:06 +0100 Subject: [PATCH] Rename leftover retro commands --- packages/lab-extension/src/index.ts | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/packages/lab-extension/src/index.ts b/packages/lab-extension/src/index.ts index a3ea6851..52fc033d 100644 --- a/packages/lab-extension/src/index.ts +++ b/packages/lab-extension/src/index.ts @@ -28,7 +28,7 @@ namespace CommandIDs { /** * Launch Jupyter Notebook Tree */ - export const launchRetroTree = 'jupyter-notebook:launch-tree'; + export const launchNotebookTree = 'jupyter-notebook:launch-tree'; /** * Open Jupyter Notebook @@ -123,7 +123,7 @@ const launchButtons: JupyterFrontEndPlugin = { addInterface({ command: CommandIDs.openNotebook, commandLabel: trans.__('Open With %1', 'Jupyter Notebook'), - buttonLabel: 'openRetro', + buttonLabel: 'openNotebook', urlPrefix: `${baseUrl}tree/` }); } @@ -155,7 +155,7 @@ const launchButtons: JupyterFrontEndPlugin = { /** * A plugin to add a command to open the Jupyter Notebook Tree. */ -const launchRetroTree: JupyterFrontEndPlugin = { +const launchNotebookTree: JupyterFrontEndPlugin = { id: '@jupyter-notebook/lab-extension:launch-tree', autoStart: true, requires: [ITranslator], @@ -170,7 +170,7 @@ const launchRetroTree: JupyterFrontEndPlugin = { const trans = translator.load('notebook'); const category = trans.__('Help'); - commands.addCommand(CommandIDs.launchRetroTree, { + commands.addCommand(CommandIDs.launchNotebookTree, { label: trans.__('Launch Jupyter Notebook File Browser'), execute: () => { window.open(PageConfig.getBaseUrl() + 'tree'); @@ -179,11 +179,11 @@ const launchRetroTree: JupyterFrontEndPlugin = { if (menu) { const helpMenu = menu.helpMenu; - helpMenu.addGroup([{ command: CommandIDs.launchRetroTree }], 1); + helpMenu.addGroup([{ command: CommandIDs.launchNotebookTree }], 1); } if (palette) { - palette.addItem({ command: CommandIDs.launchRetroTree, category }); + palette.addItem({ command: CommandIDs.launchNotebookTree, category }); } } }; @@ -191,6 +191,9 @@ const launchRetroTree: JupyterFrontEndPlugin = { /** * Export the plugins as default. */ -const plugins: JupyterFrontEndPlugin[] = [launchRetroTree, launchButtons]; +const plugins: JupyterFrontEndPlugin[] = [ + launchNotebookTree, + launchButtons +]; export default plugins;