Merge pull request #9555 from nextcloud/users-list-improvements

Fixed IE design, subadmins groups update and multiselect base width
pull/9556/head
John Molakvoæ 7 years ago committed by GitHub
commit 9296b81c8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      core/css/inputs.scss
  2. 1
      settings/Controller/UsersController.php
  3. 2
      settings/css/settings.scss
  4. 4
      settings/js/main.js
  5. 2
      settings/js/main.js.map
  6. 2
      settings/src/components/userList.vue
  7. 4
      settings/src/store/users.js
  8. 2
      settings/src/views/Users.vue

@ -626,8 +626,7 @@ input {
margin: 1px 2px;
padding: 0 !important;
display: inline-block;
/* min-width: 160px; */
/* width: 160px; */
width: 160px;
position: relative;
background-color: $color-main-background;
&.multiselect--active {

@ -239,7 +239,6 @@ class UsersController extends Controller {
$serverData = array();
// groups
$serverData['groups'] = array_merge_recursive($adminGroup, [$disabledUsersGroup], $groups);
$serverData['subadmingroups'] = $groups;
// Various data
$serverData['isAdmin'] = $this->isAdmin;
$serverData['subadmins'] = $subAdmins;

@ -1282,6 +1282,8 @@ doesnotexist:-o-prefocus, .strengthify-wrapper {
grid-column-gap: 20px;
.row {
// TODO replace with css4 subgrid when available
// fallback for ie11 no grid
display: flex;
display: grid;
grid-row-start: span 1;
grid-gap: 3px;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -189,7 +189,7 @@ export default {
},
subAdminsGroups() {
// data provided php side
return this.$store.getters.getServerData.subadmingroups;
return this.$store.getters.getSubadminGroups;
},
quotaOptions() {
// convert the preset array into objects

@ -121,6 +121,10 @@ const getters = {
getGroups(state) {
return state.groups;
},
getSubadminGroups(state) {
// Can't be subadmin of admin or disabled
return state.groups.filter(group => group.id !== 'admin' && group.id !== 'disabled');
},
getPasswordPolicyMinLength(state) {
return state.minPasswordLength;
},

@ -55,7 +55,7 @@ export default {
},
beforeMount() {
this.$store.commit('initGroups', {
groups: this.$store.getters.getServerData.groups,
groups: this.$store.getters.getServerData.groups,
orderBy: this.$store.getters.getServerData.sortGroups,
userCount: this.$store.getters.getServerData.userCount
});

Loading…
Cancel
Save