KEYCLOAK-127: Add different message when using "View all users", since modifying the query won't help.

This commit is contained in:
ammendonca 2013-12-19 12:45:17 +00:00
parent e17c7c2c1b
commit 69b25407b1
2 changed files with 3 additions and 1 deletions

View file

@ -129,6 +129,7 @@ module.controller('UserListCtrl', function($scope, realm, User) {
$scope.users = User.query(params, function() {
$scope.searchLoaded = true;
$scope.lastSearch = params.search;
});
};
});

View file

@ -65,7 +65,8 @@
</tbody>
</table>
<div class="feedback warning inline" data-ng-show="searchLoaded && users.length == 0">
<p><strong>Your search returned no results.</strong><br>Try modifying the query and try again.</p>
<p data-ng-show="lastSearch != null"><strong>Your search returned no results.</strong><br>Try modifying the query and try again.</p>
<p data-ng-show="lastSearch == null"><strong>No users present.</strong><br>Create some using the "Add User" button.</p>
</div>
<div class="feedback info inline" data-ng-show="!users">
<br/>