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 { ...@@ -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