浏览代码

Fixes #17144: Avoid displaying duplicate pop-up messages

Jeremy Stretch 2 年之前
父节点
当前提交
d5c1a5acda

文件差异内容过多而无法显示
+ 0 - 0
netbox/project-static/dist/netbox.js


文件差异内容过多而无法显示
+ 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) {
   for (const element of elements) {
     if (element !== null) {
     if (element !== null) {
       const toast = new Toast(element);
       const toast = new Toast(element);
-      toast.show();
+      if (!toast.isShown()) {
+        toast.show();
+      }
     }
     }
   }
   }
 }
 }

部分文件因为文件数量过多而无法显示