File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ import {
44
44
import { GitCredentialsForm } from './widgets/CredentialsBox' ;
45
45
import { GitCloneForm } from './widgets/GitCloneForm' ;
46
46
import { Contents } from '@jupyterlab/services' ;
47
- import { ContextMenuSvg } from '@jupyterlab/ui-components' ;
47
+ import { closeIcon , ContextMenuSvg } from '@jupyterlab/ui-components' ;
48
48
import { Message } from '@lumino/messaging' ;
49
49
import { CONTEXT_COMMANDS } from './components/FileList' ;
50
50
@@ -596,7 +596,7 @@ export function addCommands(
596
596
}
597
597
}
598
598
} ,
599
- icon : removeIcon
599
+ icon : closeIcon
600
600
} ) ;
601
601
602
602
commands . addCommand ( ContextCommandIDs . gitFileDiscard , {
@@ -853,8 +853,13 @@ export function addFileBrowserContextMenu(
853
853
// flatten the list of lists of commands
854
854
[ ]
855
855
. concat ( ...[ ...statuses ] . map ( status => CONTEXT_COMMANDS [ status ] ) )
856
- // filter out the Open command as it is not needed in file browser
857
- . filter ( command => command !== ContextCommandIDs . gitFileOpen )
856
+ // filter out the Open and Delete commands as
857
+ // those are not needed in file browser
858
+ . filter (
859
+ command =>
860
+ command !== ContextCommandIDs . gitFileOpen &&
861
+ command !== ContextCommandIDs . gitFileDelete
862
+ )
858
863
) ;
859
864
860
865
const commandsChanged =
You can’t perform that action at this time.
0 commit comments