Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf9bddf9

Browse files
authored
Grayout "Edit Notebook Metadata" for other file formats. (#7265)
* Grayed out edit-notebook-metadata* Grayed out edit notebook metadata* Added isVisible property for Edit notebook metadata* Prettier code for Test Lint check* Prettier code for Test Lint check
1 parentf6f5a1f commitf9bddf9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎packages/notebook-extension/src/index.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ const editNotebookMetadata: JupyterFrontEndPlugin<void> = {
517517
translator:ITranslator|null,
518518
notebookTools:INotebookTools|null
519519
)=>{
520-
const{ commands}=app;
520+
const{ commands, shell}=app;
521521
translator=translator??nullTranslator;
522522
consttrans=translator.load('notebook');
523523

@@ -549,6 +549,9 @@ const editNotebookMetadata: JupyterFrontEndPlugin<void> = {
549549
});
550550
}
551551
},
552+
isVisible:()=>
553+
shell.currentWidget!==null&&
554+
shell.currentWidgetinstanceofNotebookPanel,
552555
});
553556

554557
if(palette){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp