summaryrefslogtreecommitdiffstats
path: root/settings/src
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-05-18 16:39:34 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-05-18 16:39:34 +0200
commit38b1020f52dfefa6e025eb2de4512ab6b3d7ec48 (patch)
tree8b4a970d0ea5393509bf85f7d80e9d1793b05345 /settings/src
parent746f3c90536acd2a3c45f6f71fe01214f15c9822 (diff)
downloadnextcloud-server-38b1020f52dfefa6e025eb2de4512ab6b3d7ec48.tar.gz
nextcloud-server-38b1020f52dfefa6e025eb2de4512ab6b3d7ec48.zip
Bump webpack, config, deps, fixes groups selects, improved design and added tooltip to groups +x indicator
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/src')
-rw-r--r--settings/src/components/userList/userRow.vue17
1 files changed, 8 insertions, 9 deletions
diff --git a/settings/src/components/userList/userRow.vue b/settings/src/components/userList/userRow.vue
index c3250f951b0..85c96be31ac 100644
--- a/settings/src/components/userList/userRow.vue
+++ b/settings/src/components/userList/userRow.vue
@@ -32,20 +32,20 @@
<div class="groups" :class="{'icon-loading-small': loading.groups}">
<multiselect :value="userGroups" :options="groups" :disabled="loading.groups||loading.all"
tag-placeholder="create" :placeholder="t('settings', 'Add user in group')"
- label="name" track-by="id" class="multiselect-vue"
- :limit="2" :limitText="limitGroups"
+ label="name" track-by="id" class="multiselect-vue" :limit="2"
:multiple="true" :taggable="settings.isAdmin" :closeOnSelect="false"
@tag="createGroup" @select="addUserGroup" @remove="removeUserGroup">
+ <span slot="limit" class="multiselect__limit" v-tooltip.auto="formatGroupsTitle(userGroups)">+{{userGroups.length-2}}</span>
<span slot="noResult">{{t('settings', 'No results')}}</span>
</multiselect>
</div>
<div class="subadmins" v-if="subAdminsGroups.length>0 && settings.isAdmin" :class="{'icon-loading-small': loading.subadmins}">
<multiselect :value="userSubAdminsGroups" :options="subAdminsGroups" :disabled="loading.subadmins||loading.all"
:placeholder="t('settings', 'Set user as admin for')"
- label="name" track-by="id" class="multiselect-vue"
- :limit="2" :limitText="limitGroups"
+ label="name" track-by="id" class="multiselect-vue" :limit="2"
:multiple="true" :closeOnSelect="false"
@select="addUserSubAdmin" @remove="removeUserSubAdmin">
+ <span slot="limit" class="multiselect__limit" v-tooltip.auto="formatGroupsTitle(userSubAdminsGroups)">+{{userSubAdminsGroups.length-2}}</span>
<span slot="noResult">{{t('settings', 'No results')}}</span>
</multiselect>
</div>
@@ -222,15 +222,14 @@ export default {
);
},
-
/**
- * Format the limit text in the selected options
+ * Format array of groups objects to a string for the popup
*
- * @param {int} count elements left
+ * @param {array} groups The groups
* @returns {string}
*/
- limitGroups(count) {
- return '+'+count;
+ formatGroupsTitle(groups) {
+ return groups.map(group => group.name).join(', ');
},
deleteUser() {