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