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() {
|
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);
|
this.store.startTimeAgoLoops.call(this, Vue);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -65,7 +65,6 @@ export default class Poll {
|
||||||
this.makeRequest();
|
this.makeRequest();
|
||||||
}, pollInterval);
|
}, pollInterval);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.options.successCallback(response);
|
this.options.successCallback(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,8 +75,14 @@ export default class Poll {
|
||||||
notificationCallback(true);
|
notificationCallback(true);
|
||||||
|
|
||||||
return resource[method](data)
|
return resource[method](data)
|
||||||
.then(response => this.checkConditions(response))
|
.then((response) => {
|
||||||
.catch(error => errorCallback(error));
|
this.checkConditions(response);
|
||||||
|
notificationCallback(false);
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
notificationCallback(false);
|
||||||
|
errorCallback(error);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -157,7 +157,10 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
beforeUpdate() {
|
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);
|
this.store.startTimeAgoLoops.call(this, Vue);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue