From 578988f2e4dba5db7ddbc0201d4a2958e03cbef1 Mon Sep 17 00:00:00 2001 From: jaredevantabor Date: Tue, 21 Feb 2017 14:08:23 -0800 Subject: [PATCH] changing "RESET" to "REVERT" --- .../ui-form/configuration-ui.controller.js | 17 ----------------- awx/ui/client/src/shared/form-generator.js | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/awx/ui/client/src/configuration/ui-form/configuration-ui.controller.js b/awx/ui/client/src/configuration/ui-form/configuration-ui.controller.js index 43cf4d6c98..e5ee604091 100644 --- a/awx/ui/client/src/configuration/ui-form/configuration-ui.controller.js +++ b/awx/ui/client/src/configuration/ui-form/configuration-ui.controller.js @@ -103,23 +103,6 @@ $scope.$on('populated', function(e, data, flag){ populatePendoTrackingState(flag); - // if(!dropdownRendered) { - // dropdownRendered = true; - // CreateSelect2({ - // element: '#configuration_ui_template_PENDO_TRACKING_STATE', - // multiple: false, - // placeholder: i18n._('Select commands'), - // opts: [{ - // id: $scope.$parent.PENDO_TRACKING_STATE, - // text: $scope.$parent.PENDO_TRACKING_STATE - // }] - // }); - // // Fix for bug where adding selected opts causes form to be $dirty and triggering modal - // // TODO Find better solution for this bug - // $timeout(function(){ - // $scope.$parent.configuration_ui_template_form.$setPristine(); - // }, 1000); - // } }); angular.extend(uiVm, { diff --git a/awx/ui/client/src/shared/form-generator.js b/awx/ui/client/src/shared/form-generator.js index 90abc6c119..f5b6a8b243 100644 --- a/awx/ui/client/src/shared/form-generator.js +++ b/awx/ui/client/src/shared/form-generator.js @@ -678,7 +678,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat if(field.reset && !field.disabled) { var resetValue = "'" + field.reset+ "'"; - var resetMessage = i18n._('Reset'); + var resetMessage = i18n._('Revert'); html+= `${resetMessage}`; }