Przeglądaj źródła

Fixes #17144: Avoid displaying duplicate pop-up messages

Jeremy Stretch 1 rok temu
rodzic
commit
d5c1a5acda

Plik diff jest za duży
+ 0 - 0
netbox/project-static/dist/netbox.js


Plik diff jest za duży
+ 0 - 0
netbox/project-static/dist/netbox.js.map


+ 3 - 1
netbox/project-static/src/messages.ts

@@ -10,7 +10,9 @@ export function initMessages(): void {
   for (const element of elements) {
     if (element !== null) {
       const toast = new Toast(element);
-      toast.show();
+      if (!toast.isShown()) {
+        toast.show();
+      }
     }
   }
 }

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików