aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/js
diff options
context:
space:
mode:
authorMarc Hefter <marchefter@march42.net>2023-02-26 20:15:01 +0100
committerMarc Hefter <marchefter@gmail.com>2023-04-06 08:20:28 +0200
commitf812b8757689edf7a3c1f2751bbd106196e9fafb (patch)
tree202d3193a9e6f8b103325dbbffee51189c93f0f1 /apps/user_ldap/js
parent5c4a05cfd68bb0397cb033f7c5d957ed6f9eabd0 (diff)
downloadnextcloud-server-f812b8757689edf7a3c1f2751bbd106196e9fafb.tar.gz
nextcloud-server-f812b8757689edf7a3c1f2751bbd106196e9fafb.zip
handling updateProfile with array of values
using an array to buffer profile updates, like suggested by @come-nc clean some code and remove unneccessary redundancy added the Fediverse profile property Co-Authored-By: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Marc Hefter <marchefter@gmail.com>
Diffstat (limited to 'apps/user_ldap/js')
-rw-r--r--apps/user_ldap/js/wizard/wizardTabAdvanced.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/user_ldap/js/wizard/wizardTabAdvanced.js b/apps/user_ldap/js/wizard/wizardTabAdvanced.js
index 031f2bf2a9d..170625ce896 100644
--- a/apps/user_ldap/js/wizard/wizardTabAdvanced.js
+++ b/apps/user_ldap/js/wizard/wizardTabAdvanced.js
@@ -159,6 +159,10 @@ OCA = OCA || {};
$element: $('#ldap_attr_biography'),
setMethod: 'setBiographyAttribute'
},
+ ldap_attr_fediverse: {
+ $element: $('#ldap_attr_fediverse'),
+ setMethod: 'setFediverseAttribute'
+ },
ldap_profile_scope: {
$element: $('#ldap_profile_scope'),
setMethod: 'setProfileScope'
@@ -477,6 +481,15 @@ OCA = OCA || {};
},
/**
+ * sets the attribute for the Nextcloud user profile fediverse
+ *
+ * @param {string} attribute
+ */
+ setFediverseAttribute: function(attribute) {
+ this.setElementValue(this.managedItems.ldap_attr_fediverse.$element, attribute);
+ },
+
+ /**
* sets the visibility scope for the Nextcloud user profile properties
*
* @param {string} scope