summaryrefslogtreecommitdiffstats
path: root/core/src/profile.js
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-09-12 22:58:53 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-09-14 12:55:40 +0200
commit66a7a89898678f30118151733be42ce041f55816 (patch)
tree4aff2a46fe0b1ef3971f6c0055cebbdf6fac17cb /core/src/profile.js
parent52d962bd5346f8879290c332a2e35ad6d12c84df (diff)
downloadnextcloud-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/profile.js')
-rw-r--r--core/src/profile.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/core/src/profile.js b/core/src/profile.js
index 5e3711841a6..79465c6a28d 100644
--- a/core/src/profile.js
+++ b/core/src/profile.js
@@ -25,12 +25,22 @@ import { getRequestToken } from '@nextcloud/auth'
import { translate as t } from '@nextcloud/l10n'
import VTooltip from 'v-tooltip'
-import logger from './logger'
+import logger from './logger.js'
-import Profile from './views/Profile'
+import Profile from './views/Profile.vue'
+import ProfileSections from './profile/ProfileSections.js'
__webpack_nonce__ = btoa(getRequestToken())
+if (!window.OCA) {
+ window.OCA = {}
+}
+
+if (!window.OCA.Core) {
+ window.OCA.Core = {}
+}
+Object.assign(window.OCA.Core, { ProfileSections: new ProfileSections() })
+
Vue.use(VTooltip)
Vue.mixin({