summaryrefslogtreecommitdiffstats
path: root/apps/settings/src/main-personal-info.js
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2021-10-30 03:36:33 +0000
committernextcloud-command <nextcloud-command@users.noreply.github.com>2021-11-04 00:31:32 +0000
commit19c62d051f8f007212a3846e8db20f41683d3c7c (patch)
treec4ec2d39ad6111ec2f42ec39563f3b8acc3e7d25 /apps/settings/src/main-personal-info.js
parent50a6612c1fb1d56f5a9845481c8b74b9331c3c78 (diff)
downloadnextcloud-server-19c62d051f8f007212a3846e8db20f41683d3c7c.tar.gz
nextcloud-server-19c62d051f8f007212a3846e8db20f41683d3c7c.zip
Add new profile visibility section
Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/settings/src/main-personal-info.js')
-rw-r--r--apps/settings/src/main-personal-info.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/apps/settings/src/main-personal-info.js b/apps/settings/src/main-personal-info.js
index 95169aee7e6..f496c43cb25 100644
--- a/apps/settings/src/main-personal-info.js
+++ b/apps/settings/src/main-personal-info.js
@@ -22,7 +22,6 @@
import Vue from 'vue'
import { getRequestToken } from '@nextcloud/auth'
-import { loadState } from '@nextcloud/initial-state'
import { translate as t } from '@nextcloud/l10n'
import '@nextcloud/dialogs/styles/toast.scss'
@@ -37,7 +36,6 @@ import RoleSection from './components/PersonalInfo/RoleSection/RoleSection'
import HeadlineSection from './components/PersonalInfo/HeadlineSection/HeadlineSection'
import BiographySection from './components/PersonalInfo/BiographySection/BiographySection'
import ProfileVisibilitySection from './components/PersonalInfo/ProfileVisibilitySection/ProfileVisibilitySection'
-import VisibilityDropdown from './components/PersonalInfo/shared/VisibilityDropdown'
__webpack_nonce__ = btoa(getRequestToken())
@@ -59,7 +57,6 @@ const RoleView = Vue.extend(RoleSection)
const HeadlineView = Vue.extend(HeadlineSection)
const BiographyView = Vue.extend(BiographySection)
const ProfileVisibilityView = Vue.extend(ProfileVisibilitySection)
-const VisibilityDropdownView = Vue.extend(VisibilityDropdown)
new DisplayNameView().$mount('#vue-displayname-section')
new EmailView().$mount('#vue-email-section')
@@ -70,23 +67,3 @@ new RoleView().$mount('#vue-role-section')
new HeadlineView().$mount('#vue-headline-section')
new BiographyView().$mount('#vue-biography-section')
new ProfileVisibilityView().$mount('#vue-profile-visibility-section')
-
-// Profile visibility dropdowns
-const { profileConfig } = loadState('settings', 'profileParameters', {})
-const visibilityDropdownParamIds = [
- 'avatar',
- 'phone',
- 'address',
- 'website',
- 'twitter',
-]
-
-for (const paramId of visibilityDropdownParamIds) {
- const { displayId } = profileConfig[paramId]
- new VisibilityDropdownView({
- propsData: {
- paramId,
- displayId,
- },
- }).$mount(`#vue-profile-visibility-${paramId}`)
-}