mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 09:48:51 -03:30
changing "RESET" to "REVERT"
This commit is contained in:
@@ -103,23 +103,6 @@
|
|||||||
|
|
||||||
$scope.$on('populated', function(e, data, flag){
|
$scope.$on('populated', function(e, data, flag){
|
||||||
populatePendoTrackingState(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, {
|
angular.extend(uiVm, {
|
||||||
|
|||||||
@@ -678,7 +678,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
|||||||
|
|
||||||
if(field.reset && !field.disabled) {
|
if(field.reset && !field.disabled) {
|
||||||
var resetValue = "'" + field.reset+ "'";
|
var resetValue = "'" + field.reset+ "'";
|
||||||
var resetMessage = i18n._('Reset');
|
var resetMessage = i18n._('Revert');
|
||||||
html+= `<a class="Form-resetValue" ng-click="resetValue(${resetValue})">${resetMessage}</a>`;
|
html+= `<a class="Form-resetValue" ng-click="resetValue(${resetValue})">${resetMessage}</a>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user