Skip to content

Commit

Permalink
Added ability to include spaces for full name
Browse files Browse the repository at this point in the history
  • Loading branch information
DXCanas committed Aug 4, 2016
1 parent 8bf5995 commit 5ef6689
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions kolibri/plugins/management/assets/src/vue/user-roster.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,13 @@
}),
computed: {
visibleUsers() {
const roleFilter = this.roleFilter;
const searchFilter = new RegExp(this.searchFilter, 'i');
return this.users.filter((user) => {
const roleFilter = this.roleFilter;
const searchFilter = new RegExp(this.searchFilter, 'i');
const names = [user.first_name, user.last_name, user.username];
// fullname created using es6 templates
const fullname = `${user.first_name} ${user.last_name}`;
const names = [fullname, user.first_name, user.last_name, user.username];
let hasRole = true;
let hasName = true;
Expand Down

0 comments on commit 5ef6689

Please sign in to comment.