Merge pull request #18455 from nextcloud/feature/18420/new-user-alignment
fix userlist alignment
This commit is contained in:
commit
c9acba1e12
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -22,58 +22,6 @@
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div id="app-content" class="user-list-grid" @scroll.passive="onScroll">
|
<div id="app-content" class="user-list-grid" @scroll.passive="onScroll">
|
||||||
<div id="grid-header"
|
|
||||||
:class="{'sticky': scrolled && !showConfig.showNewUserForm}"
|
|
||||||
class="row">
|
|
||||||
<div id="headerAvatar" class="avatar" />
|
|
||||||
<div id="headerName" class="name">
|
|
||||||
{{ t('settings', 'Username') }}
|
|
||||||
|
|
||||||
<div class="subtitle">
|
|
||||||
{{ t('settings', 'Display name') }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="headerPassword" class="password">
|
|
||||||
{{ t('settings', 'Password') }}
|
|
||||||
</div>
|
|
||||||
<div id="headerAddress" class="mailAddress">
|
|
||||||
{{ t('settings', 'Email') }}
|
|
||||||
</div>
|
|
||||||
<div id="headerGroups" class="groups">
|
|
||||||
{{ t('settings', 'Groups') }}
|
|
||||||
</div>
|
|
||||||
<div v-if="subAdminsGroups.length>0 && settings.isAdmin"
|
|
||||||
id="headerSubAdmins"
|
|
||||||
class="subadmins">
|
|
||||||
{{ t('settings', 'Group admin for') }}
|
|
||||||
</div>
|
|
||||||
<div id="headerQuota" class="quota">
|
|
||||||
{{ t('settings', 'Quota') }}
|
|
||||||
</div>
|
|
||||||
<div v-if="showConfig.showLanguages"
|
|
||||||
id="headerLanguages"
|
|
||||||
class="languages">
|
|
||||||
{{ t('settings', 'Language') }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div v-if="showConfig.showUserBackend || showConfig.showStoragePath"
|
|
||||||
class="headerUserBackend userBackend">
|
|
||||||
<div v-if="showConfig.showUserBackend" class="userBackend">
|
|
||||||
{{ t('settings', 'User backend') }}
|
|
||||||
</div>
|
|
||||||
<div v-if="showConfig.showStoragePath"
|
|
||||||
class="subtitle storageLocation">
|
|
||||||
{{ t('settings', 'Storage location') }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div v-if="showConfig.showLastLogin"
|
|
||||||
class="headerLastLogin lastLogin">
|
|
||||||
{{ t('settings', 'Last login') }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="userActions" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<form v-show="showConfig.showNewUserForm"
|
<form v-show="showConfig.showNewUserForm"
|
||||||
id="new-user"
|
id="new-user"
|
||||||
:class="{'sticky': scrolled && showConfig.showNewUserForm}"
|
:class="{'sticky': scrolled && showConfig.showNewUserForm}"
|
||||||
|
@ -96,7 +44,6 @@
|
||||||
pattern="[a-zA-Z0-9 _\.@\-']+"
|
pattern="[a-zA-Z0-9 _\.@\-']+"
|
||||||
required
|
required
|
||||||
type="text">
|
type="text">
|
||||||
</div>
|
|
||||||
<div class="displayName">
|
<div class="displayName">
|
||||||
<input id="newdisplayname"
|
<input id="newdisplayname"
|
||||||
v-model="newUser.displayName"
|
v-model="newUser.displayName"
|
||||||
|
@ -107,6 +54,7 @@
|
||||||
name="displayname"
|
name="displayname"
|
||||||
type="text">
|
type="text">
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="password">
|
<div class="password">
|
||||||
<input id="newuserpassword"
|
<input id="newuserpassword"
|
||||||
ref="newuserpassword"
|
ref="newuserpassword"
|
||||||
|
@ -204,8 +152,66 @@
|
||||||
class="button primary icon-checkmark-white has-tooltip"
|
class="button primary icon-checkmark-white has-tooltip"
|
||||||
type="submit"
|
type="submit"
|
||||||
value="">
|
value="">
|
||||||
|
<div class="closeButton">
|
||||||
|
<Actions>
|
||||||
|
<ActionButton icon="icon-close" @click="onClose">
|
||||||
|
{{ t('settings', 'Close') }}
|
||||||
|
</ActionButton>
|
||||||
|
</Actions>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
<div id="grid-header"
|
||||||
|
:class="{'sticky': scrolled && !showConfig.showNewUserForm}"
|
||||||
|
class="row">
|
||||||
|
<div id="headerAvatar" class="avatar" />
|
||||||
|
<div id="headerName" class="name">
|
||||||
|
{{ t('settings', 'Username') }}
|
||||||
|
|
||||||
|
<div class="subtitle">
|
||||||
|
{{ t('settings', 'Display name') }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="headerPassword" class="password">
|
||||||
|
{{ t('settings', 'Password') }}
|
||||||
|
</div>
|
||||||
|
<div id="headerAddress" class="mailAddress">
|
||||||
|
{{ t('settings', 'Email') }}
|
||||||
|
</div>
|
||||||
|
<div id="headerGroups" class="groups">
|
||||||
|
{{ t('settings', 'Groups') }}
|
||||||
|
</div>
|
||||||
|
<div v-if="subAdminsGroups.length>0 && settings.isAdmin"
|
||||||
|
id="headerSubAdmins"
|
||||||
|
class="subadmins">
|
||||||
|
{{ t('settings', 'Group admin for') }}
|
||||||
|
</div>
|
||||||
|
<div id="headerQuota" class="quota">
|
||||||
|
{{ t('settings', 'Quota') }}
|
||||||
|
</div>
|
||||||
|
<div v-if="showConfig.showLanguages"
|
||||||
|
id="headerLanguages"
|
||||||
|
class="languages">
|
||||||
|
{{ t('settings', 'Language') }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-if="showConfig.showUserBackend || showConfig.showStoragePath"
|
||||||
|
class="headerUserBackend userBackend">
|
||||||
|
<div v-if="showConfig.showUserBackend" class="userBackend">
|
||||||
|
{{ t('settings', 'User backend') }}
|
||||||
|
</div>
|
||||||
|
<div v-if="showConfig.showStoragePath"
|
||||||
|
class="subtitle storageLocation">
|
||||||
|
{{ t('settings', 'Storage location') }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-if="showConfig.showLastLogin"
|
||||||
|
class="headerLastLogin lastLogin">
|
||||||
|
{{ t('settings', 'Last login') }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="userActions" />
|
||||||
|
</div>
|
||||||
|
|
||||||
<user-row v-for="(user, key) in filteredUsers"
|
<user-row v-for="(user, key) in filteredUsers"
|
||||||
:key="key"
|
:key="key"
|
||||||
|
@ -236,7 +242,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import userRow from './UserList/UserRow'
|
import userRow from './UserList/UserRow'
|
||||||
import { Multiselect } from 'nextcloud-vue'
|
import { Multiselect, Actions, ActionButton } from 'nextcloud-vue'
|
||||||
import InfiniteLoading from 'vue-infinite-loading'
|
import InfiniteLoading from 'vue-infinite-loading'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
|
|
||||||
|
@ -268,6 +274,8 @@ export default {
|
||||||
userRow,
|
userRow,
|
||||||
Multiselect,
|
Multiselect,
|
||||||
InfiniteLoading,
|
InfiniteLoading,
|
||||||
|
Actions,
|
||||||
|
ActionButton,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
users: {
|
users: {
|
||||||
|
@ -561,6 +569,9 @@ export default {
|
||||||
this.$refs.infiniteLoading.stateChanger.reset()
|
this.$refs.infiniteLoading.stateChanger.reset()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onClose() {
|
||||||
|
this.showConfig.showNewUserForm = false
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -56,10 +56,14 @@
|
||||||
:sub-admins-groups="subAdminsGroups"
|
:sub-admins-groups="subAdminsGroups"
|
||||||
:user-actions="userActions"
|
:user-actions="userActions"
|
||||||
:user="user"
|
:user="user"
|
||||||
|
:class="{'row--menu-opened': openedMenu}"
|
||||||
@hideMenu="hideMenu"
|
@hideMenu="hideMenu"
|
||||||
@toggleMenu="toggleMenu" />
|
@toggleMenu="toggleMenu" />
|
||||||
<div v-else
|
<div v-else
|
||||||
:class="{'disabled': loading.delete || loading.disable}"
|
:class="{
|
||||||
|
'disabled': loading.delete || loading.disable,
|
||||||
|
'row--menu-opened': openedMenu
|
||||||
|
}"
|
||||||
:data-id="user.id"
|
:data-id="user.id"
|
||||||
class="row row--editable">
|
class="row row--editable">
|
||||||
<div :class="{'icon-loading-small': loading.delete || loading.disable || loading.wipe}"
|
<div :class="{'icon-loading-small': loading.delete || loading.disable || loading.wipe}"
|
||||||
|
@ -675,3 +679,9 @@ export default {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<style scoped lang="scss">
|
||||||
|
// Force menu to be above other rows
|
||||||
|
.row--menu-opened {
|
||||||
|
z-index: 1 !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue