Skip to content

Commit

Permalink
Grayed out edit notebook metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmevichu committed Feb 16, 2024
1 parent dc29939 commit 3ab0ff3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/notebook-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ const editNotebookMetadata: JupyterFrontEndPlugin<void> = {
translator: ITranslator | null,
notebookTools: INotebookTools | null
) => {
const { commands } = app;
const { commands, shell } = app;
translator = translator ?? nullTranslator;
const trans = translator.load('notebook');

Expand Down Expand Up @@ -549,8 +549,7 @@ const editNotebookMetadata: JupyterFrontEndPlugin<void> = {
});
}
},
isEnabled: () => { app.shell.currentWidget !== null &&
app.shell.currentWidget instanceof NotebookPanel }
isEnabled: () => shell.currentWidget !== null && shell.currentWidget instanceof NotebookPanel

Check failure on line 552 in packages/notebook-extension/src/index.ts

View workflow job for this annotation

GitHub Actions / Test Lint

Replace `·shell.currentWidget·!==·null·&&·shell.currentWidget·instanceof·NotebookPanel` with `⏎········shell.currentWidget·!==·null·&&⏎········shell.currentWidget·instanceof·NotebookPanel,`
});

if (palette) {
Expand Down

0 comments on commit 3ab0ff3

Please sign in to comment.