Remove pending_deletion button bug from inventory list

This commit is contained in:
Marliana Lara
2018-03-27 14:26:20 -04:00
parent 9b30b02acb
commit 492e74a345
2 changed files with 56 additions and 55 deletions

View File

@@ -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'),

View File

@@ -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";
}