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 authored and iloveeclipse committed May 8, 2024
1 parent 6a0853d commit 15d8226
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.l == 4 && searchScope.t == scopeNr) {
setSearchScope([0, '', 0]);
}

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

0 comments on commit 15d8226

Please sign in to comment.