Skip to content

Commit

Permalink
avoid 'No users in here' in user list when there actually are users
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
  • Loading branch information
Julien Veyssier committed Mar 2, 2021
1 parent 41dc183 commit 5a6f497
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/settings/js/vue-settings-apps-users-management.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/settings/js/vue-settings-apps-users-management.js.map

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion apps/settings/src/components/UserList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,14 @@ export default {
search: this.searchQuery,
})
.then((response) => {
response ? $state.loaded() : $state.complete()
// we loaded something
if (this.filteredUsers.length > 0) {
$state.loaded()
}
// no more results
if (!response) {
$state.complete()
}
})
},
Expand Down

0 comments on commit 5a6f497

Please sign in to comment.