From fb7596929fa7caa3be7dfc7ab0ce71c342e2bcc1 Mon Sep 17 00:00:00 2001 From: Marliana Lara Date: Fri, 1 Feb 2019 10:55:07 -0500 Subject: [PATCH] Disable hosts toggle in smart inventory hosts tab --- .../inventories/smart-inventory/smart-inventory-hosts.route.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/ui/client/src/inventories-hosts/inventories/smart-inventory/smart-inventory-hosts.route.js b/awx/ui/client/src/inventories-hosts/inventories/smart-inventory/smart-inventory-hosts.route.js index af5768aacc..aac38ff707 100644 --- a/awx/ui/client/src/inventories-hosts/inventories/smart-inventory/smart-inventory-hosts.route.js +++ b/awx/ui/client/src/inventories-hosts/inventories/smart-inventory/smart-inventory-hosts.route.js @@ -38,7 +38,8 @@ export default { delete list.fieldActions.delete; delete list.fieldActions.edit; delete list.fieldActions.view.ngShow; - list.fields.toggleHost.ngDisabled = true; + let toggleHost = list.staticColumns.find((el) => { return el.field === 'toggleHost'; }); + toggleHost.content.ngDisabled = true; list.fields.name.columnClass = 'col-lg-8 col-md-11 col-sm-8 col-xs-7'; return list; }],