diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-18 09:08:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-18 09:08:27 +0300 |
commit | 6e2c0f81afd4c57aba26bc273ad6fdcd6ec19e27 (patch) | |
tree | 390493392c61792b4938d587b21d0c93903a98de /app/assets/javascripts/notes | |
parent | 1a683ed158e0d1b37b35cc24e219e57a1719642b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/notes')
-rw-r--r-- | app/assets/javascripts/notes/components/noteable_note.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/notes/components/noteable_note.vue b/app/assets/javascripts/notes/components/noteable_note.vue index 2a921b8c5ad..69c41af97ab 100644 --- a/app/assets/javascripts/notes/components/noteable_note.vue +++ b/app/assets/javascripts/notes/components/noteable_note.vue @@ -210,7 +210,8 @@ export default { return fileResolvedFromAvailableSource || null; }, isMRDiffView() { - return this.line && !this.isOverviewTab; + const isFileComment = this.note.position?.position_type === 'file'; + return !this.isOverviewTab && (this.line || isFileComment); }, }, created() { |