mirror of
https://github.com/ansible/awx.git
synced 2026-05-24 17:17:45 -02:30
Remove pending_deletion button bug from inventory list
This commit is contained in:
@@ -113,7 +113,7 @@ export default ['i18n', function(i18n) {
|
||||
"class": 'btn-danger btn-xs',
|
||||
awToolTip: i18n._('Copy inventory'),
|
||||
dataPlacement: 'top',
|
||||
ngShow: 'inventory.summary_fields.user_capabilities.edit'
|
||||
ngShow: '!inventory.pending_deletion && inventory.summary_fields.user_capabilities.edit'
|
||||
},
|
||||
view: {
|
||||
label: i18n._('View'),
|
||||
|
||||
@@ -395,7 +395,7 @@ export default ['$compile', 'Attr', 'Icon',
|
||||
}
|
||||
if (field_action === 'pending_deletion') {
|
||||
innerTable += `<a ng-if='${list.iterator}.pending_deletion'>Pending Delete</a>`;
|
||||
}
|
||||
} else {
|
||||
// Plug in Dropdown Component
|
||||
if (field_action === 'submit' && list.fieldActions[field_action].relaunch === true) {
|
||||
innerTable += `<at-relaunch job="${list.iterator}"></at-relaunch>`;
|
||||
@@ -455,6 +455,7 @@ export default ['$compile', 'Attr', 'Icon',
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
innerTable += "</div></td>\n";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user