diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-15 12:09:24 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-15 12:09:24 +0000 |
commit | 7912017a137da35c48071a048c99d27737c29f0f (patch) | |
tree | d967751ff35db3fb9ca788a36982a3f1f25bed92 /app/assets/javascripts/notes/components/notes_app.vue | |
parent | 25fdad39f53eb46b346076fd07bc2db9bc1d8ccb (diff) | |
download | gitlab-ce-7912017a137da35c48071a048c99d27737c29f0f.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/notes/components/notes_app.vue')
-rw-r--r-- | app/assets/javascripts/notes/components/notes_app.vue | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/assets/javascripts/notes/components/notes_app.vue b/app/assets/javascripts/notes/components/notes_app.vue index 9c2ff2c3e7f..7bb1a1a1bfe 100644 --- a/app/assets/javascripts/notes/components/notes_app.vue +++ b/app/assets/javascripts/notes/components/notes_app.vue @@ -126,6 +126,9 @@ export default { slotKeys() { return this.sortDirDesc ? ['form', 'comments'] : ['comments', 'form']; }, + isAppReady() { + return !this.isLoading && !this.renderSkeleton && this.shouldShow; + }, }, watch: { async isFetching() { @@ -149,6 +152,15 @@ export default { this.discussionsCount.textContent = val; } }, + isAppReady: { + handler(isReady) { + if (!isReady) return; + this.$nextTick(() => { + window.mrTabs?.eventHub.$emit('NotesAppReady'); + }); + }, + immediate: true, + }, }, created() { this.discussionsCount = document.querySelector('.js-discussions-count'); |