summaryrefslogtreecommitdiffstats
path: root/apps/settings/src/components/PersonalInfo/DisplayNameSection
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/components/PersonalInfo/DisplayNameSection
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/components/PersonalInfo/DisplayNameSection')
-rw-r--r--apps/settings/src/components/PersonalInfo/DisplayNameSection/DisplayNameSection.vue12
1 files changed, 1 insertions, 11 deletions
diff --git a/apps/settings/src/components/PersonalInfo/DisplayNameSection/DisplayNameSection.vue b/apps/settings/src/components/PersonalInfo/DisplayNameSection/DisplayNameSection.vue
index b46aea72856..6f07d72d456 100644
--- a/apps/settings/src/components/PersonalInfo/DisplayNameSection/DisplayNameSection.vue
+++ b/apps/settings/src/components/PersonalInfo/DisplayNameSection/DisplayNameSection.vue
@@ -33,11 +33,6 @@
<DisplayName
:display-name.sync="primaryDisplayName.value"
:scope.sync="primaryDisplayName.scope" />
-
- <VisibilityDropdown
- :param-id="accountPropertyId"
- :display-id="accountProperty"
- :visibility.sync="visibility" />
</template>
<span v-else>
@@ -51,14 +46,12 @@ import { loadState } from '@nextcloud/initial-state'
import DisplayName from './DisplayName'
import HeaderBar from '../shared/HeaderBar'
-import VisibilityDropdown from '../shared/VisibilityDropdown'
-import { ACCOUNT_PROPERTY_ENUM, ACCOUNT_PROPERTY_READABLE_ENUM } from '../../../constants/AccountPropertyConstants'
+import { ACCOUNT_PROPERTY_READABLE_ENUM } from '../../../constants/AccountPropertyConstants'
import { validateStringInput } from '../../../utils/validate'
const { displayNameMap: { primaryDisplayName } } = loadState('settings', 'personalInfoParameters', {})
const { displayNameChangeSupported } = loadState('settings', 'accountParameters', {})
-const { profileConfig: { displayname: { visibility } } } = loadState('settings', 'profileParameters', {})
export default {
name: 'DisplayNameSection',
@@ -66,16 +59,13 @@ export default {
components: {
DisplayName,
HeaderBar,
- VisibilityDropdown,
},
data() {
return {
accountProperty: ACCOUNT_PROPERTY_READABLE_ENUM.DISPLAYNAME,
- accountPropertyId: ACCOUNT_PROPERTY_ENUM.DISPLAYNAME,
displayNameChangeSupported,
primaryDisplayName,
- visibility,
}
},