Add batch actions to local user table
Add ability to remove, enable, disable local users in bulk.
- Updates to table-actions component to fix flickering issue
by including track by $index in ng-repeat
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I67039e9b9d9cf7debe9f6ef87e71210bd4b64251
diff --git a/app/users/controllers/user-accounts-modal-remove.html b/app/users/controllers/user-accounts-modal-remove.html
index e615251..4a3efce 100644
--- a/app/users/controllers/user-accounts-modal-remove.html
+++ b/app/users/controllers/user-accounts-modal-remove.html
@@ -8,7 +8,8 @@
</button>
</div>
<div class="modal-body">
- <p>Are you sure you want to remove user '{{modalCtrl.user}}'? This action cannot be undone.</p>
+ <p ng-if="modalCtrl.users.length > 1">Are you sure you want to remove {{modalCtrl.users.length}} users? This action cannot be undone.</p>
+ <p ng-if="modalCtrl.users.length === 1">Are you sure you want to remove user '{{modalCtrl.users[0].UserName}}'? This action cannot be undone.</p>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" ng-click="$dismiss()" type="button">