Skip to content

Commit

Permalink
#802 Fixes GeneList counter bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
lawal-olaotan committed Nov 13, 2023
1 parent bcf8cd5 commit f5dc76d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions client-base/src/main/webapp/html/javascript/data-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -802,13 +802,7 @@ class GenesListManager {
$(".limit-message").toggleClass('show', !isLimitReached);
$(".border").toggleClass('limit-border', !isLimitReached);
$('.genesCount').toggleClass('genes-limit', !isLimitReached);

// checks if restriction is already based on search button
if(!searchButton.hasClass('button-disabled'))
{
searchButton.toggleClass('button-disabled', !isLimitReached);
}

searchButton.toggleClass('button-disabled', !isLimitReached);
if (!isLimitReached) this.#showStatusMessage(isLimitReached);

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const exampleQuery = function () {
var isQueryRestricted = userAccessMgr.requires(userRole);

// disables search button if query is restricted
$('#searchBtn').toggleClass('button-disabled', !isQueryRestricted);
$('#searchBtn').toggleClass('query-disabled', !isQueryRestricted);

if (!regions.length) {
removeGeneRow()
Expand Down

0 comments on commit f5dc76d

Please sign in to comment.