Add support for creating a new file

This commit is contained in:
Dane Everitt 2019-12-21 16:38:40 -08:00
parent d75073116f
commit e784218645
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
6 changed files with 116 additions and 23 deletions

View file

@ -58,7 +58,7 @@ const ServerRouter = ({ match, location }: RouteComponentProps<{ id: string }>)
<Route path={`${match.path}`} component={ServerConsole} exact/>
<Route path={`${match.path}/files`} component={FileManagerContainer} exact/>
<Route
path={`${match.path}/files/edit`}
path={`${match.path}/files/:action(edit|new)`}
render={props => (
<SuspenseSpinner>
<FileEditContainer {...props as any}/>