aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/src/main-personal-info.js
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-07-30 00:32:16 +0000
committerChristopher Ng <chrng8@gmail.com>2022-09-02 02:22:57 +0000
commitf44d2586b174991002d210efa9568e0b96d92304 (patch)
tree66ad3d1781cf45fc5a04a3c6303c1d31905aeb1b /apps/settings/src/main-personal-info.js
parentf167fe0ceb7179ef8ae705bb47c44e596196b5d8 (diff)
downloadnextcloud-server-f44d2586b174991002d210efa9568e0b96d92304.tar.gz
nextcloud-server-f44d2586b174991002d210efa9568e0b96d92304.zip
Remake profile picture saving with Vue
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/settings/src/main-personal-info.js')
-rw-r--r--apps/settings/src/main-personal-info.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/settings/src/main-personal-info.js b/apps/settings/src/main-personal-info.js
index 32d8bfc8b45..47af5af8487 100644
--- a/apps/settings/src/main-personal-info.js
+++ b/apps/settings/src/main-personal-info.js
@@ -26,6 +26,7 @@ import { loadState } from '@nextcloud/initial-state'
import { translate as t } from '@nextcloud/l10n'
import '@nextcloud/dialogs/styles/toast.scss'
+import AvatarSection from './components/PersonalInfo/AvatarSection.vue'
import DisplayNameSection from './components/PersonalInfo/DisplayNameSection.vue'
import EmailSection from './components/PersonalInfo/EmailSection/EmailSection.vue'
import PhoneSection from './components/PersonalInfo/PhoneSection.vue'
@@ -50,6 +51,7 @@ Vue.mixin({
},
})
+const AvatarView = Vue.extend(AvatarSection)
const DisplayNameView = Vue.extend(DisplayNameSection)
const EmailView = Vue.extend(EmailSection)
const PhoneView = Vue.extend(PhoneSection)
@@ -58,6 +60,7 @@ const WebsiteView = Vue.extend(WebsiteSection)
const TwitterView = Vue.extend(TwitterSection)
const LanguageView = Vue.extend(LanguageSection)
+new AvatarView().$mount('#vue-avatar-section')
new DisplayNameView().$mount('#vue-displayname-section')
new EmailView().$mount('#vue-email-section')
new PhoneView().$mount('#vue-phone-section')