|
@@ -130,6 +130,7 @@ export default (HistoryManager = (function() {
|
|
|
updates: [],
|
|
updates: [],
|
|
|
viewMode: this._getViewModeUserPref(),
|
|
viewMode: this._getViewModeUserPref(),
|
|
|
nextBeforeTimestamp: null,
|
|
nextBeforeTimestamp: null,
|
|
|
|
|
+ loading: false,
|
|
|
atEnd: false,
|
|
atEnd: false,
|
|
|
userHasFullFeature: undefined,
|
|
userHasFullFeature: undefined,
|
|
|
freeHistoryLimitHit: false,
|
|
freeHistoryLimitHit: false,
|
|
@@ -618,9 +619,11 @@ export default (HistoryManager = (function() {
|
|
|
requests.labels = this.ide.$http.get(labelsURL)
|
|
requests.labels = this.ide.$http.get(labelsURL)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ this.$scope.history.loading = true
|
|
|
return this.ide.$q
|
|
return this.ide.$q
|
|
|
.all(requests)
|
|
.all(requests)
|
|
|
.then(response => {
|
|
.then(response => {
|
|
|
|
|
+ this.$scope.history.loading = false
|
|
|
const updatesData = response.updates.data
|
|
const updatesData = response.updates.data
|
|
|
let lastUpdateToV = null
|
|
let lastUpdateToV = null
|
|
|
|
|
|
|
@@ -648,6 +651,7 @@ export default (HistoryManager = (function() {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
.catch(error => {
|
|
.catch(error => {
|
|
|
|
|
+ this.$scope.history.loading = false
|
|
|
const { status, statusText } = error
|
|
const { status, statusText } = error
|
|
|
this.$scope.history.error = { status, statusText }
|
|
this.$scope.history.error = { status, statusText }
|
|
|
this.$scope.history.atEnd = true
|
|
this.$scope.history.atEnd = true
|