Skip to content

Commit

Permalink
Make sure to display notifications properly
Browse files Browse the repository at this point in the history
  • Loading branch information
dhovart committed Jun 8, 2022
1 parent 3f7815d commit d285aab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions view/atlasmaker/src/atlasmaker-ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -721,10 +721,10 @@ export var AtlasMakerWS = {
doFadeOut: 0
});
} else if (dialogType === 'info') {
const prevMsg = document.querySelector('#notifications').textContent;
document.querySelector('#notifications').textContent = msg;
const prevMsg = document.querySelector('.tools .notifications').textContent;
me.setNotification(msg);
setTimeout(function() {
document.querySelector('#notifications').textContent = prevMsg;
me.setNotification(prevMsg);
}, 2000);
} else {
me.displayDialog({
Expand Down

0 comments on commit d285aab

Please sign in to comment.