-
Notifications
You must be signed in to change notification settings - Fork 593
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CNV-5024: Inform for pending changes in VM's configuration
Present a warning when the user make changes while the VM is running Signed-off-by: Ido Rosenzwig <irosenzw@redhat.com> CNV-5024# Please enter the commit message for your changes. Lines starting
- Loading branch information
Showing
41 changed files
with
1,064 additions
and
259 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
3 changes: 3 additions & 0 deletions
3
frontend/packages/kubevirt-plugin/src/components/Alerts/PendingChangesAlert.scss
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,3 @@ | ||
.kv__pending_changes-alert { | ||
margin-bottom: var(--pf-global--spacer--sm); | ||
} |
24 changes: 24 additions & 0 deletions
24
frontend/packages/kubevirt-plugin/src/components/Alerts/PendingChangesAlert.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,24 @@ | ||
import * as React from 'react'; | ||
import { Alert, AlertVariant } from '@patternfly/react-core'; | ||
|
||
import './PendingChangesAlert.scss'; | ||
|
||
type PendingChangesAlertProps = { | ||
warningMsg?: string; | ||
isWarning?: boolean; | ||
}; | ||
|
||
export const PendingChangesAlert: React.FC<PendingChangesAlertProps> = ({ | ||
warningMsg, | ||
isWarning, | ||
children, | ||
}) => ( | ||
<Alert | ||
title="Pending Changes" | ||
isInline | ||
variant={isWarning ? AlertVariant.warning : AlertVariant.info} | ||
className="kv__pending_changes-alert" | ||
> | ||
{warningMsg || children} | ||
</Alert> | ||
); |
3 changes: 0 additions & 3 deletions
3
...end/packages/kubevirt-plugin/src/components/modals/boot-order-modal/boot-order-modal.scss
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.