Merge pull request #143 from ammendonca/KEYCLOAK-127

KEYCLOAK-127: Add different message when using "View all users", since m...
This commit is contained in:
Bill Burke
2013-12-19 06:52:52 -08:00
2 changed files with 3 additions and 1 deletions
@@ -129,6 +129,7 @@ module.controller('UserListCtrl', function($scope, realm, User) {
$scope.users = User.query(params, function() {
$scope.searchLoaded = true;
$scope.lastSearch = params.search;
});
};
});
@@ -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/>