Skip to content

Commit

Permalink
only hide notification after timeout for non-mixed sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazy-poet committed Jul 23, 2023
1 parent 11af7eb commit de29b95
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 6 additions & 5 deletions public/js/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,12 @@ export class SearchQueryWidget extends Component {
if (type) {
$('#' + type + '-sequence-notification').show('drop', { direction: 'up' }).addClass('active');

this.notification_timeout = setTimeout(function () {
$('.notifications .active').hide('drop', { direction: 'up' }).removeClass('active');
}, 5000);

if (type === 'mixed') {
//hide notification after 5s only for non-mixed sequences
if (type !== 'mixed') {
this.notification_timeout = setTimeout(function () {
$('.notifications .active').hide('drop', { direction: 'up' }).removeClass('active');
}, 5000);
} else {
this.indicateError();
}
}
Expand Down
Loading

0 comments on commit de29b95

Please sign in to comment.