diff --git a/apps/settings/js/federationsettingsview.js b/apps/settings/js/federationsettingsview.js index f5c7af8637a5a..f20ad8e0ecdfd 100644 --- a/apps/settings/js/federationsettingsview.js +++ b/apps/settings/js/federationsettingsview.js @@ -130,7 +130,8 @@ field === 'avatar' || field === 'email' || field === 'displayname' || - field === 'twitter' + field === 'twitter' || + field === 'phone' ) { return; } diff --git a/apps/settings/lib/Settings/Personal/PersonalInfo.php b/apps/settings/lib/Settings/Personal/PersonalInfo.php index df1608e01d92e..4f1ee1fa792ec 100644 --- a/apps/settings/lib/Settings/Personal/PersonalInfo.php +++ b/apps/settings/lib/Settings/Personal/PersonalInfo.php @@ -147,8 +147,6 @@ public function getForm(): TemplateResponse { 'federationEnabled' => $federationEnabled, 'lookupServerUploadEnabled' => $lookupServerUploadEnabled, 'avatarScope' => $account->getProperty(IAccountManager::PROPERTY_AVATAR)->getScope(), - 'phone' => $account->getProperty(IAccountManager::PROPERTY_PHONE)->getValue(), - 'phoneScope' => $account->getProperty(IAccountManager::PROPERTY_PHONE)->getScope(), 'address' => $account->getProperty(IAccountManager::PROPERTY_ADDRESS)->getValue(), 'addressScope' => $account->getProperty(IAccountManager::PROPERTY_ADDRESS)->getScope(), 'website' => $account->getProperty(IAccountManager::PROPERTY_WEBSITE)->getValue(), @@ -162,6 +160,7 @@ public function getForm(): TemplateResponse { $personalInfoParameters = [ 'userId' => $uid, 'displayName' => $this->getProperty($account, IAccountManager::PROPERTY_DISPLAYNAME), + 'phone' => $this->getProperty($account, IAccountManager::PROPERTY_PHONE), 'twitter' => $this->getProperty($account, IAccountManager::PROPERTY_TWITTER), 'emailMap' => $this->getEmailMap($account), 'languageMap' => $this->getLanguageMap($user), diff --git a/apps/settings/src/components/PersonalInfo/PhoneSection.vue b/apps/settings/src/components/PersonalInfo/PhoneSection.vue new file mode 100644 index 0000000000000..a92a31dd9b048 --- /dev/null +++ b/apps/settings/src/components/PersonalInfo/PhoneSection.vue @@ -0,0 +1,51 @@ + + + + + diff --git a/apps/settings/src/main-personal-info.js b/apps/settings/src/main-personal-info.js index 1ebaae0fc8ea9..e659d6af7758b 100644 --- a/apps/settings/src/main-personal-info.js +++ b/apps/settings/src/main-personal-info.js @@ -28,6 +28,7 @@ import '@nextcloud/dialogs/styles/toast.scss' import DisplayNameSection from './components/PersonalInfo/DisplayNameSection.vue' import EmailSection from './components/PersonalInfo/EmailSection/EmailSection.vue' +import PhoneSection from './components/PersonalInfo/PhoneSection.vue' import TwitterSection from './components/PersonalInfo/TwitterSection.vue' import LanguageSection from './components/PersonalInfo/LanguageSection/LanguageSection.vue' import ProfileSection from './components/PersonalInfo/ProfileSection/ProfileSection.vue' @@ -49,11 +50,13 @@ Vue.mixin({ const DisplayNameView = Vue.extend(DisplayNameSection) const EmailView = Vue.extend(EmailSection) +const PhoneView = Vue.extend(PhoneSection) const TwitterView = Vue.extend(TwitterSection) const LanguageView = Vue.extend(LanguageSection) new DisplayNameView().$mount('#vue-displayname-section') new EmailView().$mount('#vue-email-section') +new PhoneView().$mount('#vue-phone-section') new TwitterView().$mount('#vue-twitter-section') new LanguageView().$mount('#vue-language-section') diff --git a/apps/settings/templates/settings/personal/personal.info.php b/apps/settings/templates/settings/personal/personal.info.php index 973c98521f5ce..a4edd54210583 100644 --- a/apps/settings/templates/settings/personal/personal.info.php +++ b/apps/settings/templates/settings/personal/personal.info.php @@ -120,20 +120,7 @@
-
-

- - - - - - -

- - - - -
+