-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated REST API Design.
- Loading branch information
Showing
2 changed files
with
81 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import * as React from 'react'; | ||
import * as _ from 'lodash-es'; | ||
import { | ||
Button, | ||
ButtonVariant, | ||
Flex, | ||
FlexItem, | ||
Form, | ||
FormGroup, | ||
InputGroup, | ||
InputGroupText, | ||
InputGroupTextVariant, | ||
PageSection, | ||
PageSectionVariants, | ||
Text, | ||
TextInput, | ||
} from '@patternfly/react-core'; | ||
import ApplicationsPage from '../ApplicationsPage'; | ||
import { Notebook } from '../../types'; | ||
import { useDispatch } from 'react-redux'; | ||
import { addNotification } from '../../redux/actions/actions'; | ||
import './NotebookImages.scss'; | ||
|
||
const description = `Update global settings for all users.`; | ||
|
||
const NotebookImages: React.FC = () => { | ||
const isEmpty = true; | ||
const [loaded, setLoaded] = React.useState<boolean>(false); | ||
const [loadError, setLoadError] = React.useState<Error>(); | ||
const [NotebookImages, setNoteImages] = React.useState(Array<Notebook>()); | ||
const dispatch = useDispatch(); | ||
|
||
React.useEffect(() => { | ||
// fetchClusterSettings() | ||
// .then((NotebookImages: NotebookImages) => { | ||
// setLoaded(true); | ||
// setLoadError(undefined); | ||
// setClusterSettings(NotebookImages); | ||
// setPvcSize(NotebookImages.pvcSize); | ||
// }) | ||
// .catch((e) => { | ||
// setLoadError(e); | ||
// }); | ||
}, []); | ||
|
||
|
||
return ( | ||
<ApplicationsPage | ||
title="Notebook image settings" | ||
description={description} | ||
loaded={loaded} | ||
empty={isEmpty} | ||
loadError={loadError} | ||
errorMessage="Unable to load Notebook images." | ||
emptyMessage="No custom notebook images found." | ||
> | ||
{!isEmpty ? ( | ||
<div className="odh-cluster-settings"> | ||
<PageSection variant={PageSectionVariants.light} padding={{ default: 'noPadding' }}> | ||
<Flex direction={{ default: 'column' }}> | ||
<FlexItem> | ||
</FlexItem> | ||
</Flex> | ||
</PageSection> | ||
</div> | ||
) : null} | ||
</ApplicationsPage> | ||
); | ||
}; | ||
|
||
export default NotebookImages; |