diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-07 09:09:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-07 09:09:21 +0300 |
commit | 97815325b875a7bde0793cb0777e36b275ae1c6c (patch) | |
tree | 7f5e56fe3b69c472a78922adc6f82fd29217eebc /app/assets/javascripts/vue_shared/components | |
parent | 923a8c950c009e65fd17ae2ab6c5e245a66175b5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/vue_shared/components')
-rw-r--r-- | app/assets/javascripts/vue_shared/components/registry/title_area.vue | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/app/assets/javascripts/vue_shared/components/registry/title_area.vue b/app/assets/javascripts/vue_shared/components/registry/title_area.vue index ad979387596..9cb16bb6ef6 100644 --- a/app/assets/javascripts/vue_shared/components/registry/title_area.vue +++ b/app/assets/javascripts/vue_shared/components/registry/title_area.vue @@ -38,17 +38,15 @@ export default { metadataSlots: [], }; }, - mounted() { - this.recalculateMetadataSlots(); - }, - updated() { + created() { this.recalculateMetadataSlots(); }, methods: { recalculateMetadataSlots() { const METADATA_PREFIX = 'metadata-'; - // eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots - const metadataSlots = Object.keys(this.$slots).filter((k) => k.startsWith(METADATA_PREFIX)); + const metadataSlots = Object.keys(this.$scopedSlots).filter((k) => + k.startsWith(METADATA_PREFIX), + ); if (!isEqual(metadataSlots, this.metadataSlots)) { this.metadataSlots = metadataSlots; @@ -77,9 +75,7 @@ export default { </h2> <div - v-if=" - $slots['sub-header'] /* eslint-disable-line @gitlab/vue-prefer-dollar-scopedslots */ - " + v-if="$scopedSlots['sub-header']" class="gl-display-flex gl-align-items-center gl-text-gray-500 gl-mt-3" > <slot name="sub-header"></slot> @@ -110,8 +106,7 @@ export default { </template> </div> </div> - <!-- eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots --> - <div v-if="$slots['right-actions']" class="gl-mt-3"> + <div v-if="$scopedSlots['right-actions']" class="gl-mt-3"> <slot name="right-actions"></slot> </div> </div> |