diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/devtools/front_end/sources/NavigatorView.js')
-rw-r--r-- | chromium/third_party/blink/renderer/devtools/front_end/sources/NavigatorView.js | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/chromium/third_party/blink/renderer/devtools/front_end/sources/NavigatorView.js b/chromium/third_party/blink/renderer/devtools/front_end/sources/NavigatorView.js index a2016cac9e2..ef0c313ca7a 100644 --- a/chromium/third_party/blink/renderer/devtools/front_end/sources/NavigatorView.js +++ b/chromium/third_party/blink/renderer/devtools/front_end/sources/NavigatorView.js @@ -115,18 +115,6 @@ Sources.NavigatorView = class extends UI.VBox { /** * @param {!UI.ContextMenu} contextMenu - */ - static appendAddFolderItem(contextMenu) { - function addFolder() { - Persistence.isolatedFileSystemManager.addFileSystem(); - } - - const addFolderLabel = Common.UIString('Add folder to workspace'); - contextMenu.defaultSection().appendItem(addFolderLabel, addFolder); - } - - /** - * @param {!UI.ContextMenu} contextMenu * @param {string=} path */ static appendSearchItem(contextMenu, path) { @@ -753,7 +741,7 @@ Sources.NavigatorView = class extends UI.VBox { } if (project.type() === Workspace.projectTypes.FileSystem) { - Sources.NavigatorView.appendAddFolderItem(contextMenu); + contextMenu.defaultSection().appendAction('sources.add-folder-to-workspace', undefined, true); if (node instanceof Sources.NavigatorGroupTreeNode) contextMenu.defaultSection().appendItem(Common.UIString('Remove folder from workspace'), removeFolder); } |