From: Bill Erickson Date: Thu, 24 May 2018 16:26:41 +0000 (-0400) Subject: LP#1750894 Undo settings review/migrate UI changes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=59fdf034ee61500ffb2c0349006724de9fab08b5;p=working%2FEvergreen.git LP#1750894 Undo settings review/migrate UI changes No way to know (at present any way) what settings exist on the server for a given workstation, since some settings are user settings (and not all user settings are staff workstation settings). Maybe revisit later. Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/staff/admin/workstation/t_splash.tt2 b/Open-ILS/src/templates/staff/admin/workstation/t_splash.tt2 index 50a60ef0db..345f7db6d3 100644 --- a/Open-ILS/src/templates/staff/admin/workstation/t_splash.tt2 +++ b/Open-ILS/src/templates/staff/admin/workstation/t_splash.tt2 @@ -82,7 +82,6 @@ -
@@ -128,33 +127,6 @@
-
-
- -

[% | l %]Settings may be migrated to the server using the first -option below as many times as needed for testing and verification. Once -local settings are deleted via the second option, the migration will be -marked as complete and no more migration attempts may occur.[% END %] -

-
    -
  1. - -
  2. -
  3. - -
  4. -
-
-
- - diff --git a/Open-ILS/src/templates/staff/admin/workstation/t_stored_prefs.tt2 b/Open-ILS/src/templates/staff/admin/workstation/t_stored_prefs.tt2 index 6722748644..dc031b44bb 100644 --- a/Open-ILS/src/templates/staff/admin/workstation/t_stored_prefs.tt2 +++ b/Open-ILS/src/templates/staff/admin/workstation/t_stored_prefs.tt2 @@ -15,11 +15,12 @@ [% |l %] Preference values are stored as JSON strings. Click on a preference to view the stored value. -Click on the delete (X) button to remove a preference value. +Click on the delete (X) button to remove a preference's value. [% END %] +
@@ -28,10 +29,7 @@ Click on the delete (X) button to remove a preference value. [% l('Local Prefs') %]
  • - [% l('Hatch Prefs') %] -
  • -
  • - [% l('Server Prefs') %] + [% l('Remote Prefs') %]
  • 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 893a2dcf09..f599bc0bbc 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 @@ -728,8 +728,8 @@ function($scope , $q , egCore , ngToast) { }]) .controller('StoredPrefsCtrl', - ['$scope','$q','egCore','egConfirmDialog','egProgressDialog','$timeout', -function($scope , $q , egCore , egConfirmDialog , egProgressDialog , $timeout) { + ['$scope','$q','egCore','egConfirmDialog', +function($scope , $q , egCore , egConfirmDialog) { console.log('StoredPrefsCtrl'); $scope.setContext = function(ctx) { @@ -745,7 +745,7 @@ function($scope , $q , egCore , egConfirmDialog , egProgressDialog , $timeout) { // fetch the keys function refreshKeys() { - $scope.keys = {local : [], remote : [], server: []}; + $scope.keys = {local : [], remote : []}; if (egCore.hatch.hatchAvailable) { egCore.hatch.getRemoteKeys().then( @@ -754,10 +754,6 @@ function($scope , $q , egCore , egConfirmDialog , egProgressDialog , $timeout) { // local calls are non-async $scope.keys.local = egCore.hatch.getLocalKeys(); - - egCore.hatch.getServerKeys().then(function(keys) { - $scope.keys.server = keys; - }); } refreshKeys(); @@ -767,11 +763,6 @@ function($scope , $q , egCore , egConfirmDialog , egProgressDialog , $timeout) { if ($scope.context == 'local') { $scope.currentKeyContent = egCore.hatch.getLocalItem(key); - } else if ($scope.context === 'server') { - egCore.hatch.getServerItem(key) - .then(function(content) { - $scope.currentKeyContent = content - }); } else { egCore.hatch.getRemoteItem(key) .then(function(content) { @@ -792,9 +783,6 @@ function($scope , $q , egCore , egConfirmDialog , egProgressDialog , $timeout) { if ($scope.context == 'local') { egCore.hatch.removeLocalItem(key); refreshKeys(); - } else if ($scope.context == 'server') { - egCore.hatch.removeServerItem(key) - .then(function() { refreshKeys() }); } else { egCore.hatch.removeItem(key) .then(function() { refreshKeys() });