-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6dacf96
commit 6e68aad
Showing
3 changed files
with
38 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import * as React from 'react'; | ||
import { useHistory } from 'react-router-dom'; | ||
import { ActionGroup, Button, Form, FormGroup, Text, TextVariants } from '@patternfly/react-core'; | ||
|
||
export interface SnapshotRecordingFormProps { | ||
onSubmit: (command: string, args: string[]) => void; | ||
}; | ||
|
||
export const SnapshotRecordingForm = (props) => { | ||
const history = useHistory(); | ||
|
||
const handleSubmit = () => { | ||
props.onSubmit('snapshot', []); | ||
}; | ||
|
||
return (<> | ||
<Form> | ||
<Text component={TextVariants.p}> | ||
A Snapshot recording is one which contains all information about all | ||
events that have been captured in the current session by <i>other, | ||
non-snapshot</i> recordings. Snapshots do not themselves define which | ||
events are enabled, their thresholds, or any other options. A Snapshot | ||
is only ever in the STOPPED state from the moment it is created. | ||
</Text> | ||
<ActionGroup> | ||
<Button variant="primary" onClick={handleSubmit}>Create</Button> | ||
<Button variant="secondary" onClick={history.goBack}>Cancel</Button> | ||
</ActionGroup> | ||
</Form> | ||
</>); | ||
} |