]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1705068 - fix workstation already exists cancel btn freezes UI
authorCesar Velez <cesar.velez@equinoxinitiative.org>
Fri, 8 Sep 2017 20:23:33 +0000 (16:23 -0400)
committerBen Shum <ben@evergreener.net>
Sun, 17 Sep 2017 14:13:45 +0000 (10:13 -0400)
commit420cea901181bd84413826774fa81c180852340a
treea5d9e9bdf8d932347c42d562250bab8efd24f74a
parentd02163c4f7a4c1b8223943c86da37bd2ca3f3a44
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.

To test
-------
1. Register a workstation.
2. Switch to a different computer or Chrome profile.
3. Try to register the same workstation name. Warning dialog will pop
   up.
4. Click cancel.
5. See that the register button is now disabled and no actions on the
   form seem to reactivate it.
6. Apply the patch and repeat steps 2-4. This time, the register button
   should be active.

Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Ben Shum <ben@evergreener.net>
Open-ILS/web/js/ui/default/staff/admin/workstation/app.js