From 30a3864db2d84b5f14a4fa2cd80b256ede37dc94 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Fri, 16 Aug 2024 18:59:45 +1200 Subject: [PATCH] no loading overlay --- .../network-visualiser/NetworkVisualiser.vue | 41 +------------------ 1 file changed, 1 insertion(+), 40 deletions(-) diff --git a/src/frontend/components/network-visualiser/NetworkVisualiser.vue b/src/frontend/components/network-visualiser/NetworkVisualiser.vue index c9b14e2..5a8be3d 100644 --- a/src/frontend/components/network-visualiser/NetworkVisualiser.vue +++ b/src/frontend/components/network-visualiser/NetworkVisualiser.vue @@ -4,22 +4,8 @@
- -
-
-
- - - - -
-
Loading {{ loadingProgress }}%
-
Large networks may take a while...
-
-
- -
+
Reticulum Network
@@ -60,8 +46,6 @@ export default { data() { return { config: null, - isLoading: false, - loadingProgress: 0, reloadInterval: null, isShowingControls: true, interfaces: [], @@ -122,8 +106,6 @@ export default { }, async init() { - this.isLoading = true; - // create network ui const container = document.getElementById("network"); this.network = new Network(container, { @@ -169,30 +151,9 @@ export default { }, }); - // update loading progress - this.network.on("stabilizationProgress", (event) => { - - // calculate percentage stabilized - this.loadingProgress = Math.floor((event.iterations / event.total) * 100); - - // hide loading once stabilized at least 50% - if(this.loadingProgress >= 50){ - this.isLoading = false; - } - - }); - - // hide loading when stabilized - this.network.on("stabilized", () => { - this.isLoading = false; - }); - // update network await this.update(); - // stabilise the network a bit after first load - this.network.stabilize(); - }, async update() {