Skip to content

Commit

Permalink
Modernized help UI prototype: Fix set scope still set after deletion
Browse files Browse the repository at this point in the history
Fix the issue that a set scope will still be shown as active after it
has been deleted.
  • Loading branch information
howlger committed May 8, 2024
1 parent 6a0853d commit cb42a00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ua/org.eclipse.help.webapp/m/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,12 @@
});
} else {
var deleteButton = createButton(scopesPage, '<%js:scopes_scope_delete_button_label%>', '<%js:scopes_scope_delete_button_description%>', function() {

// if the scope to be deleted is set, unset it first
if (searchScope.level == SEARCH_SCOPE_LEVEL_CUSTOM && searchScope.customIndex == scopeNr) {
setSearchScope([SEARCH_SCOPE_LEVEL_ALL]);
}

doScopesOperation('remove&workingSet=' + encodeURIComponent(scopeName));
});
deleteButton.className = 'b br';
Expand Down

0 comments on commit cb42a00

Please sign in to comment.