diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-09-12 22:58:53 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-09-14 12:55:40 +0200 |
commit | 66a7a89898678f30118151733be42ce041f55816 (patch) | |
tree | 4aff2a46fe0b1ef3971f6c0055cebbdf6fac17cb /core/src/views/Profile.vue | |
parent | 52d962bd5346f8879290c332a2e35ad6d12c84df (diff) | |
download | nextcloud-server-66a7a89898678f30118151733be42ce041f55816.tar.gz nextcloud-server-66a7a89898678f30118151733be42ce041f55816.zip |
Add api to load additional section in profile page
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'core/src/views/Profile.vue')
-rw-r--r-- | core/src/views/Profile.vue | 11 |
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(), } }, |