fix linting errors and add note to host groups disassocation modal

This commit is contained in:
John Mitchell 2020-04-06 10:14:59 -04:00
parent 4e64b17712
commit 7dbde8d82c
3 changed files with 12 additions and 1 deletions

View File

@ -1,5 +1,4 @@
import Base from '../Base';
import { TintSlashIcon } from '@patternfly/react-icons';
class Hosts extends Base {
constructor(http) {

View File

@ -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 groups
children. This list shows all groups the host is associated
with directly and indirectly.
`)}
/>,
]}
/>

View File

@ -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 groups
children. This list shows all groups the host is associated
with directly and indirectly.
`)}
/>,
]}
/>