mirror of
https://github.com/documize/community.git
synced 2025-07-25 08:09:43 +02:00
Provide better user list paging UX
This commit is contained in:
parent
8a654fcf3d
commit
d1bc4a5b4c
9 changed files with 84 additions and 44 deletions
|
@ -24,7 +24,7 @@ export default Component.extend(AuthProvider, ModalMixin, {
|
|||
searchText: '',
|
||||
users: null,
|
||||
members: null,
|
||||
userLimit: 100,
|
||||
userLimit: 25,
|
||||
|
||||
didReceiveAttrs() {
|
||||
this._super(...arguments);
|
||||
|
|
|
@ -25,6 +25,7 @@ export default Component.extend(AuthProvider, ModalMixin, Notifier, {
|
|||
filter: '',
|
||||
hasSelectedUsers: false,
|
||||
showDeleteDialog: false,
|
||||
showPermExplain: false,
|
||||
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
|
@ -58,6 +59,16 @@ export default Component.extend(AuthProvider, ModalMixin, Notifier, {
|
|||
},
|
||||
|
||||
actions: {
|
||||
togglePerms() {
|
||||
this.set('showPermExplain', !this.get('showPermExplain'));
|
||||
|
||||
if (this.showPermExplain) {
|
||||
this.$(".perms").show();
|
||||
} else {
|
||||
this.$(".perms").hide();
|
||||
}
|
||||
},
|
||||
|
||||
toggleSelect(user) {
|
||||
user.set('selected', !user.get('selected'));
|
||||
|
||||
|
|
|
@ -22,11 +22,14 @@ export default Component.extend({
|
|||
color: '',
|
||||
label: '',
|
||||
tooltip: '',
|
||||
selected: false,
|
||||
|
||||
calcClass: computed(function() {
|
||||
calcClass: computed('selected', function() {
|
||||
let c = '';
|
||||
if (this.color !== '') c += this.color + ' ';
|
||||
|
||||
if (this.selected === true) c += 'label-selected';
|
||||
|
||||
return c.trim();
|
||||
}),
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue