Skip to content

Commit 45aefbf

Browse files
committed
update icon and rank of commands
1 parent d694e8b commit 45aefbf

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/plugins/driveBrowserPlugin.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ import {
2929
newFolderIcon,
3030
fileIcon,
3131
notebookIcon,
32-
editIcon
32+
editIcon,
33+
copyIcon,
34+
pasteIcon
3335
} from '@jupyterlab/ui-components';
3436
import { PageConfig, PathExt } from '@jupyterlab/coreutils';
3537
import { CommandRegistry } from '@lumino/commands';
@@ -722,13 +724,13 @@ namespace Private {
722724
Clipboard.copyToSystem(currentPath);
723725
},
724726
label: 'Copy to Filebrowser',
725-
icon: driveBrowserIcon.bindprops({ stylesheet: 'menuItem' })
727+
icon: copyIcon.bindprops({ stylesheet: 'menuItem' })
726728
});
727729

728730
app.contextMenu.addItem({
729731
command: CommandIDs.copyToFilebrowser,
730732
selector: '#drive-file-browser.jp-SidePanel .jp-DirListing-content',
731-
rank: 105
733+
rank: 10
732734
});
733735

734736
app.commands.addCommand(CommandIDs.pasteToFilebrowser, {
@@ -765,13 +767,13 @@ namespace Private {
765767
await filebrowser?.model.refresh();
766768
},
767769
label: 'Paste from Drive',
768-
icon: driveBrowserIcon.bindprops({ stylesheet: 'menuItem' })
770+
icon: pasteIcon.bindprops({ stylesheet: 'menuItem' })
769771
});
770772

771773
app.contextMenu.addItem({
772774
command: CommandIDs.pasteToFilebrowser,
773775
selector: '.jp-FileBrowser-listing',
774-
rank: 105
776+
rank: 10
775777
});
776778
}
777779
}

0 commit comments

Comments
 (0)