From 350a6d6abc2e7edde8709203ba75c9e97c89a84a Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Mon, 6 Apr 2020 10:14:59 -0400 Subject: [PATCH] fix linting errors and add note to host groups disassocation modal --- awx/ui_next/src/api/models/Hosts.js | 1 - awx/ui_next/src/screens/Host/HostGroups/HostGroupsList.jsx | 6 ++++++ .../InventoryHostGroups/InventoryHostGroupsList.jsx | 6 ++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/awx/ui_next/src/api/models/Hosts.js b/awx/ui_next/src/api/models/Hosts.js index f9f5fe5542a5..ae90bf2826f9 100644 --- a/awx/ui_next/src/api/models/Hosts.js +++ b/awx/ui_next/src/api/models/Hosts.js @@ -1,5 +1,4 @@ import Base from '../Base'; -import { TintSlashIcon } from '@patternfly/react-icons'; class Hosts extends Base { constructor(http) { diff --git a/awx/ui_next/src/screens/Host/HostGroups/HostGroupsList.jsx b/awx/ui_next/src/screens/Host/HostGroups/HostGroupsList.jsx index 4da7fdb023b3..22c290135876 100644 --- a/awx/ui_next/src/screens/Host/HostGroups/HostGroupsList.jsx +++ b/awx/ui_next/src/screens/Host/HostGroups/HostGroupsList.jsx @@ -186,6 +186,12 @@ function HostGroupsList({ i18n, location, match, host }) { onDisassociate={handleDisassociate} itemsToDisassociate={selected} modalTitle={i18n._(t`Disassociate group from host?`)} + modalNote={i18n._(t` + Note that you may still see the group in the list after + disassociating if the host is also a member of that group’s + children. This list shows all groups the host is associated + with directly and indirectly. + `)} />, ]} /> diff --git a/awx/ui_next/src/screens/Inventory/InventoryHostGroups/InventoryHostGroupsList.jsx b/awx/ui_next/src/screens/Inventory/InventoryHostGroups/InventoryHostGroupsList.jsx index e049b1d596c5..04441c5070ef 100644 --- a/awx/ui_next/src/screens/Inventory/InventoryHostGroups/InventoryHostGroupsList.jsx +++ b/awx/ui_next/src/screens/Inventory/InventoryHostGroups/InventoryHostGroupsList.jsx @@ -184,6 +184,12 @@ function InventoryHostGroupsList({ i18n, location, match }) { onDisassociate={handleDisassociate} itemsToDisassociate={selected} modalTitle={i18n._(t`Disassociate group from host?`)} + modalNote={i18n._(t` + Note that you may still see the group in the list after + disassociating if the host is also a member of that group’s + children. This list shows all groups the host is associated + with directly and indirectly. + `)} />, ]} />