Commit 83033f25 authored by Filipa Lacerda's avatar Filipa Lacerda

Only shows loading for the first request

parent eab9d688
...@@ -67,7 +67,7 @@ export default { ...@@ -67,7 +67,7 @@ export default {
}, },
created() { created() {
this.getDeployBoard(); this.getDeployBoard(true);
}, },
updated() { updated() {
...@@ -80,14 +80,14 @@ export default { ...@@ -80,14 +80,14 @@ export default {
this.deployBoardData.completion < 100) { this.deployBoardData.completion < 100) {
// let's wait 1s and make the request again // let's wait 1s and make the request again
setTimeout(() => { setTimeout(() => {
this.getDeployBoard(); this.getDeployBoard(false);
}, 3000); }, 3000);
} }
}, },
methods: { methods: {
getDeployBoard() { getDeployBoard(showLoading) {
this.isLoading = true; this.isLoading = showLoading;
const maxNumberOfRequests = 3; const maxNumberOfRequests = 3;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment