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 {
},
created() {
this.getDeployBoard();
this.getDeployBoard(true);
},
updated() {
......@@ -80,14 +80,14 @@ export default {
this.deployBoardData.completion < 100) {
// let's wait 1s and make the request again
setTimeout(() => {
this.getDeployBoard();
this.getDeployBoard(false);
}, 3000);
}
},
methods: {
getDeployBoard() {
this.isLoading = true;
getDeployBoard(showLoading) {
this.isLoading = showLoading;
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