diff --git a/awx/ui/static/js/lists/HomeHosts.js b/awx/ui/static/js/lists/HomeHosts.js index 897851ec7a..992a46a7b8 100644 --- a/awx/ui/static/js/lists/HomeHosts.js +++ b/awx/ui/static/js/lists/HomeHosts.js @@ -41,6 +41,7 @@ export default key: true, label: 'Name', columnClass: 'col-lg-4 col-md3 col-sm-3 col-xs-7 ellipsis', + ngClass: "{ 'host-disabled-label': !host.enabled }", ngClick: "editHost(host.id)" }, inventory_name: { @@ -78,14 +79,6 @@ export default }, fieldActions: { - enabled_flag: { - //label: 'Enabled', - iconClass: "{{ 'fa icon-enabled-' + host.enabled }}", - dataPlacement: 'top', - awToolTip: "{{ host.enabledToolTip }}", - dataTipWatch: "host.enabledToolTip", - ngClick: "toggleHostEnabled(host.id, host.has_inventory_sources)" - }, /*active_failures: { //label: 'Job Status', //ngHref: "\{\{'/#/hosts/' + host.id + '/job_host_summaries/?inventory=' + inventory_id \}\}", @@ -113,4 +106,4 @@ export default } } - }); \ No newline at end of file + }); diff --git a/awx/ui/static/js/lists/InventoryHosts.js b/awx/ui/static/js/lists/InventoryHosts.js index 026fc59a43..2a54bc71b4 100644 --- a/awx/ui/static/js/lists/InventoryHosts.js +++ b/awx/ui/static/js/lists/InventoryHosts.js @@ -28,6 +28,7 @@ export default key: true, label: 'Hosts', ngClick: "editHost(host.id)", + ngClass: "{ 'host-disabled-label': !host.enabled }", columnClass: 'col-lg-8 col-md-9 col-sm-9 col-xs-7', dataHostId: "{{ host.id }}", dataType: "host" @@ -53,13 +54,6 @@ export default columnClass: 'col-lg-4 col-md-3 col-sm-3 col-xs-5 text-right', label: false, - enabled_flag: { - iconClass: "{{ 'fa icon-enabled-' + host.enabled }}", - dataPlacement: 'top', - awToolTip: "{{ host.enabledToolTip }}", - dataTipWatch: "host.enabledToolTip", - ngClick: "toggleHostEnabled(host.id, host.has_inventory_sources)" - }, active_failures: { awPopOver: "{{ host.job_status_html }}", dataTitle: "{{ host.job_status_title }}", @@ -111,4 +105,4 @@ export default } } - }); \ No newline at end of file + }); diff --git a/awx/ui/static/js/shared/generator-helpers.js b/awx/ui/static/js/shared/generator-helpers.js index 37a0be35f8..4f9d9166cf 100644 --- a/awx/ui/static/js/shared/generator-helpers.js +++ b/awx/ui/static/js/shared/generator-helpers.js @@ -336,6 +336,7 @@ angular.module('GeneratorHelpers', [systemStatus.name]) html = "