forked from broadinstitute/seqr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLoadWorkspaceData.jsx
41 lines (35 loc) · 1.25 KB
/
LoadWorkspaceData.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import React from 'react'
import DocumentTitle from 'react-document-title'
import PropTypes from 'prop-types'
import { Message, Segment } from 'semantic-ui-react'
import LoadWorkspaceDataForm from './components/LoadWorkspaceDataForm'
export const WorkspaceAccessError = ({ match }) =>
<Segment basic padded="very" textAlign="center">
<Message error compact size="large" >
<Message.Header>
User does not have sufficient permissions for workspace "{match.params.name}"
</Message.Header>
<Message.List>
To submit the initial request to load data to seqr, users require:
<Message.Item>"Writer" or "Owner" level access to the workspace</Message.Item>
<Message.Item>The "Can Share" permission enabled for the workspace</Message.Item>
</Message.List>
</Message>
</Segment>
WorkspaceAccessError.propTypes = {
match: PropTypes.object,
}
const LoadWorkspaceData = ({ match }) =>
(
<div>
<DocumentTitle title="seqr: load anvil data" />
<LoadWorkspaceDataForm
namespace={match.params.namespace}
name={match.params.name}
/>
</div>
)
LoadWorkspaceData.propTypes = {
match: PropTypes.object,
}
export default LoadWorkspaceData