Fix broken build
This commit is contained in:
parent
788f3451f7
commit
7c1bb6c349
3 changed files with 16 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue