From f44d2586b174991002d210efa9568e0b96d92304 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Sat, 30 Jul 2022 00:32:16 +0000 Subject: Remake profile picture saving with Vue Signed-off-by: Christopher Ng --- apps/settings/src/main-personal-info.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/settings/src/main-personal-info.js') 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') -- cgit v1.2.3