diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-15 03:08:55 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-15 03:08:55 +0000 |
commit | 4998f4e2d82409aaebb4a0fb6f85ad130819da57 (patch) | |
tree | 765abb9152a402ef8206e9d934385595659d4f0e /app | |
parent | c9bd888d38746a9bb73629681d8c393c3ec77275 (diff) | |
download | gitlab-ce-4998f4e2d82409aaebb4a0fb6f85ad130819da57.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/diffs/components/app.vue | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/app/assets/javascripts/diffs/components/app.vue b/app/assets/javascripts/diffs/components/app.vue index 23b8458aa6b..463d1427805 100644 --- a/app/assets/javascripts/diffs/components/app.vue +++ b/app/assets/javascripts/diffs/components/app.vue @@ -163,9 +163,6 @@ export default { }, isLoading: 'adjustView', showTreeList: 'adjustView', - retrievingBatches(newVal) { - if (!newVal) this.unwatchDiscussions(); - }, }, mounted() { this.setBaseConfig({ @@ -198,6 +195,16 @@ export default { () => `${this.diffFiles.length}:${this.$store.state.notes.discussions.length}`, () => this.setDiscussions(), ); + + this.unwatchRetrievingBatches = this.$watch( + () => `${this.retrievingBatches}:${this.$store.state.notes.discussions.length}`, + () => { + if (!this.retrievingBatches && this.$store.state.notes.discussions.length) { + this.unwatchDiscussions(); + this.unwatchRetrievingBatches(); + } + }, + ); }, beforeDestroy() { eventHub.$off('fetchDiffData', this.fetchData); |