Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-08-07 09:09:21 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-08-07 09:09:21 +0300
commit97815325b875a7bde0793cb0777e36b275ae1c6c (patch)
tree7f5e56fe3b69c472a78922adc6f82fd29217eebc /app/assets/javascripts/vue_shared/components
parent923a8c950c009e65fd17ae2ab6c5e245a66175b5 (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.vue17
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>