Commit 7c1bb6c3 authored by Filipa Lacerda's avatar Filipa Lacerda Committed by Kamil Trzcinski

Fix broken build

parent 788f3451
......@@ -98,7 +98,10 @@ export default Vue.component('pipelines-table', {
},
beforeUpdate() {
if (this.state.pipelines.length && this.$children && !this.isMakingRequest) {
if (this.state.pipelines.length &&
this.$children &&
!this.isMakingRequest &&
!this.isLoading) {
this.store.startTimeAgoLoops.call(this, Vue);
}
},
......
......@@ -65,7 +65,6 @@ export default class Poll {
this.makeRequest();
}, pollInterval);
}
this.options.successCallback(response);
}
......@@ -76,8 +75,14 @@ export default class Poll {
notificationCallback(true);
return resource[method](data)
.then(response => this.checkConditions(response))
.catch(error => errorCallback(error));
.then((response) => {
this.checkConditions(response);
notificationCallback(false);
})
.catch((error) => {
notificationCallback(false);
errorCallback(error);
});
}
/**
......
......@@ -157,7 +157,10 @@ export default {
},
beforeUpdate() {
if (this.state.pipelines.length && this.$children && !this.isMakingRequest) {
if (this.state.pipelines.length &&
this.$children &&
!this.isMakingRequest &&
!this.isLoading) {
this.store.startTimeAgoLoops.call(this, Vue);
}
},
......
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