mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
Merge pull request #2745 from mabashian/job-cancel-button
Fix job cancel button icon
This commit is contained in:
commit
27abf03452
@ -343,6 +343,11 @@ export default
|
||||
var i, modifier,
|
||||
widgets = (list.searchWidgets) ? list.searchWidgets : 1;
|
||||
|
||||
// Initialize SearchParams as an empty string if it's not defined. If we don't do this and SearchParams === undefined
|
||||
// then 'undefined' will sneak into the string as we are concatenating and the request will never get sent since we
|
||||
// regex search for 'undefined' in the doSearch section of this process.
|
||||
scope[iterator + 'SearchParams'] = (!scope[iterator + 'SearchParams'] || scope[iterator + 'SearchParams'] === undefined) ? '' : scope[iterator + 'SearchParams'];
|
||||
|
||||
for (i = 1; i <= widgets; i++) {
|
||||
modifier = (i === 1) ? '' : i;
|
||||
scope[iterator + 'HoldInput' + modifier] = true;
|
||||
|
||||
@ -184,6 +184,9 @@ angular.module('GeneratorHelpers', [systemStatus.name])
|
||||
case 'copy':
|
||||
icon = "fa-copy";
|
||||
break;
|
||||
case 'cancel':
|
||||
icon = "fa-minus-circle";
|
||||
break;
|
||||
}
|
||||
icon += (size) ? " " + size : "";
|
||||
return Icon(icon);
|
||||
|
||||
@ -545,8 +545,7 @@ export default ['$location', '$compile', '$rootScope', 'SearchWidget', 'Paginate
|
||||
innerTable += (fAction.href) ? "href=\"" + fAction.href + "\" " : "";
|
||||
innerTable += (fAction.ngHref) ? "ng-href=\"" + fAction.ngHref + "\" " : "";
|
||||
innerTable += "class=\"List-actionButton ";
|
||||
innerTable += (field_action === 'delete') ? "List-actionButton--delete" : "";
|
||||
innerTable += (field_action === 'cancel') ? "cancel red-txt" : "";
|
||||
innerTable += (field_action === 'delete' || field_action === 'cancel') ? "List-actionButton--delete" : "";
|
||||
innerTable += "\" ";
|
||||
// rowBeingEdited === '{{ " + list.iterator + ".id }}' && listBeingEdited === '" + list.name + "' ? 'List-tableRow--selected' : ''";
|
||||
innerTable += (field_action === 'edit') ? "ng-class=\"[rowBeingEdited === '{{ " + list.iterator + ".id }}' && listBeingEdited === '" + list.name + "' ? 'List-editButton--selected' : '']\"" : "";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user