From d285aabe62c58195ccae9797e4ecdf52717bc3ca Mon Sep 17 00:00:00 2001 From: Denis Hovart Date: Wed, 8 Jun 2022 16:32:29 +0200 Subject: [PATCH] Make sure to display notifications properly --- view/atlasmaker/src/atlasmaker-ws.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/view/atlasmaker/src/atlasmaker-ws.js b/view/atlasmaker/src/atlasmaker-ws.js index f30dec67..2e5a584a 100644 --- a/view/atlasmaker/src/atlasmaker-ws.js +++ b/view/atlasmaker/src/atlasmaker-ws.js @@ -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({