Commit dc4945f2 authored by Jacob Schatz's avatar Jacob Schatz

Merge branch '2117-deploy-board-flickering' into 'master'

Only shows loading for the first request

Closes #2117

See merge request !1620
parents 453cc447 83033f25
......@@ -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