aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/views/Profile.vue
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/views/Profile.vue')
-rw-r--r--core/src/views/Profile.vue11
1 files changed, 10 insertions, 1 deletions
diff --git a/core/src/views/Profile.vue b/core/src/views/Profile.vue
index 93b8316e4da..c7571fff148 100644
--- a/core/src/views/Profile.vue
+++ b/core/src/views/Profile.vue
@@ -118,13 +118,21 @@
</p>
</div>
</div>
- <template v-if="headline || biography">
+ <template v-if="headline || biography || sections.length > 0">
<div v-if="headline" class="profile__blocks-headline">
<h3>{{ headline }}</h3>
</div>
<div v-if="biography" class="profile__blocks-biography">
<p>{{ biography }}</p>
</div>
+
+ <!-- additional entries, use it with cautious -->
+ <div v-for="(section, index) in sections"
+ :ref="'section-' + index"
+ :key="index"
+ class="profile__additionalContent">
+ <component :is="section($refs['section-'+index], userId)" :userId="userId" />
+ </div>
</template>
<template v-else>
<div class="profile__blocks-empty-info">
@@ -204,6 +212,7 @@ export default {
biography,
actions,
isUserAvatarVisible,
+ sections: OCA.Core.ProfileSections.getSections(),
}
},