-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add networking bonding configuration in the UI
- Loading branch information
Showing
9 changed files
with
266 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
...ponents/clusterConfiguration/staticIp/components/FormViewHosts/BondsConfirmationModal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import * as React from 'react'; | ||
import { | ||
Button, | ||
ButtonVariant, | ||
Modal, | ||
ModalBoxBody, | ||
ModalBoxFooter, | ||
Stack, | ||
StackItem, | ||
} from '@patternfly/react-core'; | ||
|
||
import { useTranslation } from '../../../../../../common/hooks/use-translation-wrapper'; | ||
|
||
type BondDeleteModalModalProps = { | ||
isOpen: boolean; | ||
onConfirm: VoidFunction; | ||
onCancel: VoidFunction; | ||
}; | ||
|
||
const BondDeleteModalModal = ({ isOpen, onConfirm, onCancel }: BondDeleteModalModalProps) => { | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<Modal | ||
aria-label={t('ai:Remove bond dialog')} | ||
title={t('ai:Remove bond?')} | ||
isOpen={isOpen} | ||
onClose={onCancel} | ||
hasNoBodyWrapper | ||
id="remove-bond-modal" | ||
variant="medium" | ||
titleIconVariant="warning" | ||
> | ||
<ModalBoxBody> | ||
<Stack hasGutter> | ||
<StackItem>{t('ai: The bond associated with the host will be removed.')}</StackItem> | ||
</Stack> | ||
</ModalBoxBody> | ||
<ModalBoxFooter> | ||
<Button onClick={onConfirm} variant={ButtonVariant.danger}> | ||
{t('ai:Remove bond')} | ||
</Button> | ||
<Button onClick={onCancel} variant={ButtonVariant.secondary}> | ||
{t('ai:Cancel')} | ||
</Button> | ||
</ModalBoxFooter> | ||
</Modal> | ||
); | ||
}; | ||
|
||
export default BondDeleteModalModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.