diff client/src/components/Sidebar.vue @ 2413:f39c4b432601 staging_consolidation

merge with default
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 28 Feb 2019 12:29:46 +0100
parents 598b0c262475 b72d3da6409c
children 706121185e63
line wrap: on
line diff
--- a/client/src/components/Sidebar.vue	Thu Feb 28 12:04:18 2019 +0100
+++ b/client/src/components/Sidebar.vue	Thu Feb 28 12:29:46 2019 +0100
@@ -225,13 +225,15 @@
     }
   },
   mounted() {
-    this.$store.dispatch("imports/getStaging").catch(error => {
-      const { status, data } = error.response;
-      displayError({
-        title: "Backend Error",
-        message: `${status}: ${data.message || data}`
+    setTimeout(() => {
+      this.$store.dispatch("imports/getStaging").catch(error => {
+        const { status, data } = error.response;
+        displayError({
+          title: "Backend Error",
+          message: `${status}: ${data.message || data}`
+        });
       });
-    });
+    }, 15000);
   }
 };
 </script>
@@ -268,9 +270,13 @@
   .indicator {
     left: auto;
     right: 10px;
-    top: 10px;
+    top: 12px;
     border-radius: 0.25rem;
   }
+  &.router-link-exact-active .indicator {
+    background: #fff;
+    color: #333;
+  }
 }
 
 .menu a svg path {