Commit 85ffc0ea authored by Joel Einbinder's avatar Joel Einbinder Committed by Commit Bot

DevTools: Don't allow excluding workspace roots

If a workspace root was exluded, it would instead exclude "undefined"

Change-Id: Ib82e11f2182a1fcced176735ae714212a153d5b2
Reviewed-on: https://chromium-review.googlesource.com/822457Reviewed-by: default avatarAndrey Lushnikov <lushnikov@chromium.org>
Commit-Queue: Andrey Lushnikov <lushnikov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#523558}
parent bcf34be9
......@@ -724,8 +724,11 @@ Sources.NavigatorView = class extends UI.VBox {
contextMenu.defaultSection().appendItem(
Common.UIString('New file'), this._handleContextMenuCreate.bind(this, project, path));
contextMenu.defaultSection().appendItem(
Common.UIString('Exclude folder'), this._handleContextMenuExclude.bind(this, project, path));
if (!(node instanceof Sources.NavigatorGroupTreeNode)) {
contextMenu.defaultSection().appendItem(
Common.UIString('Exclude folder'), this._handleContextMenuExclude.bind(this, project, path));
}
function removeFolder() {
var shouldRemove = window.confirm(Common.UIString('Are you sure you want to remove this folder?'));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment