From: Cesar Velez Date: Fri, 8 Sep 2017 20:23:33 +0000 (-0400) Subject: LP#1705068 - fix workstation already exists cancel btn freezes UI X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fcesardv%2Flp1705068_ws_registration_existing_ui_bug;p=working%2FEvergreen.git LP#1705068 - fix workstation already exists cancel btn freezes UI The $scope.is_registering is used to enable/disable the Register btn and was not being set back to false, when the user chose to cancel using an existing WS name, and exiting the modal. Signed-off by: Cesar Velez --- diff --git a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js index 2cc025623f..eec5df1d08 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js +++ b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js @@ -108,7 +108,9 @@ function($q , $timeout , $location , egCore , egConfirmDialog) { service.register_ws_api( base_name, name, org_id, true, deferred) }, - cancel : function() {deferred.reject()} + cancel : function() { + deferred.reject(); + } } ); @@ -861,7 +863,8 @@ function($scope , $q , $window , $location , egCore , egAlertDialog , workstatio return $scope.set_default_ws(new_ws.name); } $scope.newWSName = ''; - }); + }, + function(err){ $scope.is_registering = false; }); } }])