Mercurial > gemma
comparison client/src/components/Sidebar.vue @ 2698:472f4c6a1ec0
Sidebar: set count of pending imports correctly
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 18 Mar 2019 11:32:27 +0100 |
parents | bd615f978164 |
children | fdc392299ff1 |
comparison
equal
deleted
inserted
replaced
2697:8279c044c04b | 2698:472f4c6a1ec0 |
---|---|
206 this.$store; | 206 this.$store; |
207 HTTP.get("/imports?states=pending&count=true", { | 207 HTTP.get("/imports?states=pending&count=true", { |
208 headers: { "X-Gemma-Auth": localStorage.getItem("token") } | 208 headers: { "X-Gemma-Auth": localStorage.getItem("token") } |
209 }) | 209 }) |
210 .then(response => { | 210 .then(response => { |
211 const { imports } = response.data; | 211 this.stagingNotifications = response.data; |
212 this.stagingNotifications = imports.length; | |
213 }) | 212 }) |
214 .catch(error => { | 213 .catch(error => { |
215 const { status, data } = error.response; | 214 const { status, data } = error.response; |
216 displayError({ | 215 displayError({ |
217 title: "Backend Error", | 216 title: "Backend Error", |