Commit 02b46623 authored by Viacheslav Pavlov's avatar Viacheslav Pavlov Committed by Matija Obreza
Browse files

Removed rights from Subset model

- Remove licenses selector from Subset
- moved to src/ui/genesys
parent e1da1b88
...@@ -22,7 +22,6 @@ class Subset { ...@@ -22,7 +22,6 @@ class Subset {
public lastModifiedDate: Date; public lastModifiedDate: Date;
public state: PublishState; public state: PublishState;
public publisher: string; public publisher: string;
public rights: string;
public title: string; public title: string;
public uuid: string; public uuid: string;
public version: number; public version: number;
......
...@@ -21,7 +21,6 @@ const SubsetCard = ({subset, complete = false, ...other}: { subset: Subset, comp ...@@ -21,7 +21,6 @@ const SubsetCard = ({subset, complete = false, ...other}: { subset: Subset, comp
{ subset.crops && subset.crops.length > 0 && <PropertiesItem title="Crops"><CropChips crops={ subset.crops }/></PropertiesItem> } { subset.crops && subset.crops.length > 0 && <PropertiesItem title="Crops"><CropChips crops={ subset.crops }/></PropertiesItem> }
<PropertiesItem title="Number of accessions"><Number value={ subset.accessionCount } /></PropertiesItem> <PropertiesItem title="Number of accessions"><Number value={ subset.accessionCount } /></PropertiesItem>
<PropertiesItem title="Institute"><InstituteLink to={ subset.institute }>{ subset.institute.fullName }</InstituteLink></PropertiesItem> <PropertiesItem title="Institute"><InstituteLink to={ subset.institute }>{ subset.institute.fullName }</InstituteLink></PropertiesItem>
{ complete && <PropertiesItem title="License">{ subset.rights }</PropertiesItem> }
{ complete && <PropertiesItem title="Creation date"><McpdDate value={ subset.date }/></PropertiesItem> } { complete && <PropertiesItem title="Creation date"><McpdDate value={ subset.date }/></PropertiesItem> }
{ complete && subset.source && <PropertiesItem title="Source"><ExternalLink link={ subset.source } /></PropertiesItem> } { complete && subset.source && <PropertiesItem title="Source"><ExternalLink link={ subset.source } /></PropertiesItem> }
</Properties> </Properties>
......
...@@ -8,7 +8,6 @@ import Validators from 'utilities/Validators'; ...@@ -8,7 +8,6 @@ import Validators from 'utilities/Validators';
import {TextField} from 'ui/common/text-field'; import {TextField} from 'ui/common/text-field';
import MarkdownField from 'ui/common/markdown/MarkdownField'; import MarkdownField from 'ui/common/markdown/MarkdownField';
import CropSelector from 'crop/ui/c/CropSelector'; import CropSelector from 'crop/ui/c/CropSelector';
import BasicInfoRadioGroup from './BasicInfoRadioGroup';
interface ILoginContainerProps extends React.ClassAttributes<any> { interface ILoginContainerProps extends React.ClassAttributes<any> {
handleSubmit: () => void; handleSubmit: () => void;
...@@ -52,10 +51,6 @@ class BasicInfoStep extends React.Component<ILoginContainerProps, any> { ...@@ -52,10 +51,6 @@ class BasicInfoStep extends React.Component<ILoginContainerProps, any> {
component={ CropSelector } component={ CropSelector }
label="Crops" label="Crops"
/> />
<Field
name="rights"
component={ BasicInfoRadioGroup }
/>
<Field <Field
name="date" name="date"
component={ TextField } component={ TextField }
......
...@@ -13,7 +13,7 @@ const styles = { ...@@ -13,7 +13,7 @@ const styles = {
// None // None
}; };
const BasicInfoRadioGroup = ({input, meta, classes, ...rest}) => ( const LicenseSelector = ({input, meta, classes, ...rest}) => (
<FormControl required> <FormControl required>
<FormLabel>Rights</FormLabel> <FormLabel>Rights</FormLabel>
<RadioGroup <RadioGroup
...@@ -44,4 +44,4 @@ const BasicInfoRadioGroup = ({input, meta, classes, ...rest}) => ( ...@@ -44,4 +44,4 @@ const BasicInfoRadioGroup = ({input, meta, classes, ...rest}) => (
</FormControl> </FormControl>
); );
export default withStyles(styles)(BasicInfoRadioGroup); export default withStyles(styles)(LicenseSelector);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment