[open-ils-commits] [GIT] Evergreen ILS branch rel_3_2 updated. db7f91ae2af87b79d65e19e1b659f823e2bb935f
Evergreen Git
git at git.evergreen-ils.org
Tue Jan 15 15:00:16 EST 2019
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_3_2 has been updated
via db7f91ae2af87b79d65e19e1b659f823e2bb935f (commit)
from e308297d93c106453c81108dc477f68595b04687 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit db7f91ae2af87b79d65e19e1b659f823e2bb935f
Author: Cesar Velez <cesar.velez at equinoxinitiative.org>
Date: Wed Dec 12 17:43:35 2018 -0500
LP#1737800 - add delete action to pending patrons
This adds a way to remove a pending/staged user from
the pending users grid.
Signed-off-by: Cesar Velez <cesar.velez at equinoxinitiative.org>
Signed-off-by: Terran McCanna <tmccanna at georgialibraries.org>
Signed-off-by: Bill Erickson <berickxx at gmail.com>
diff --git a/Open-ILS/src/templates/staff/circ/patron/t_pending_list.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_pending_list.tt2
index 7384211..c8ecf9f 100644
--- a/Open-ILS/src/templates/staff/circ/patron/t_pending_list.tt2
+++ b/Open-ILS/src/templates/staff/circ/patron/t_pending_list.tt2
@@ -22,6 +22,9 @@
<eg-grid-menu-item handler="load_patron"
label="[% l('Load Patron') %]"></eg-grid-menu-item>
+ <eg-grid-menu-item handler="deletePatron"
+ label="[% l('Delete Pending Patron(s)') %]"></eg-grid-menu-item>
+
<eg-grid-field path='user.row_date' label="[% l('Create Date') %]"></eg-grid-field>
<eg-grid-field path='user.first_given_name' label="[% l('First Name') %]"></eg-grid-field>
<eg-grid-field path='user.second_given_name' label="[% l('Middle Name') %]"></eg-grid-field>
diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/pending.js b/Open-ILS/web/js/ui/default/staff/circ/patron/pending.js
index 0912eb8..59b1556 100644
--- a/Open-ILS/web/js/ui/default/staff/circ/patron/pending.js
+++ b/Open-ILS/web/js/ui/default/staff/circ/patron/pending.js
@@ -37,12 +37,33 @@ function($scope , $q , $routeParams , $window , $location , egCore , egGridDataP
).focus();
}
+ function delete_patron(sel_pending_users) {
+ if (angular.isArray(sel_pending_users)){
+ var promises = [];
+ angular.forEach(sel_pending_users, function(stgu){
+ promises.push(egCore.net.request(
+ 'open-ils.actor',
+ 'open-ils.actor.user.stage.delete',
+ egCore.auth.token(),
+ stgu.user.row_id()
+ ));
+ });
+
+ $q.all(promises).then(refresh_page);
+ }
+ }
+
$scope.load_patron = function(action, data, items) {
load_patron(items);
}
+ $scope.deletePatron = function(action, data, items) {
+ delete_patron(items);
+ }
+
$scope.grid_controls = {
- activateItem : load_patron
+ activateItem : load_patron,
+ deleteItem : delete_patron
}
function refresh_page() {
-----------------------------------------------------------------------
Summary of changes:
.../templates/staff/circ/patron/t_pending_list.tt2 | 3 ++
.../web/js/ui/default/staff/circ/patron/pending.js | 23 +++++++++++++++++++-
2 files changed, 25 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list