Merge pull request #3136 from marshmalien/fix-inv-host-tab

Disable hosts toggle in smart inventory hosts tab
This commit is contained in:
Marliana Lara 2019-02-01 16:36:02 -05:00 committed by GitHub
commit 17c95f200a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}],