enum CollectionContentAddressPanelColumnNames {
COLLECTION_WITH_THIS_ADDRESS = "Collection with this address",
- OWNER = "Owner",
+ LOCATION = "Location",
LAST_MODIFIED = "Last modified"
}
render: uuid => <ResourceName uuid={uuid} />
},
{
- name: CollectionContentAddressPanelColumnNames.OWNER,
+ name: CollectionContentAddressPanelColumnNames.LOCATION,
selected: true,
configurable: true,
filters: createTree(),
}
];
-export interface CollectionContentAddressMainCardActionProps {
+export interface CollectionContentAddressPanelActionProps {
onContextMenu: (event: React.MouseEvent<any>, uuid: string) => void;
onItemClick: (item: string) => void;
onItemDoubleClick: (item: string) => void;
}
-const mapDispatchToProps = (dispatch: Dispatch): CollectionContentAddressMainCardActionProps => ({
+const mapDispatchToProps = (dispatch: Dispatch): CollectionContentAddressPanelActionProps => ({
onContextMenu: (event, resourceUuid) => {
const isAdmin = dispatch<any>(getIsAdmin());
const kind = resourceKindToContextMenuKind(resourceUuid, isAdmin);
export const CollectionsContentAddressPanel = withStyles(styles)(
connect(null, mapDispatchToProps)(
- class extends React.Component<CollectionContentAddressMainCardActionProps & WithStyles<CssRules>> {
+ class extends React.Component<CollectionContentAddressPanelActionProps & WithStyles<CssRules>> {
render() {
return <Grid item xs={12}>
- {/* <Link to={`/collections/${this.props.collection.uuid}`} className={this.props.classes.backLink}>
+ {/* <Link to={`/collections/${collectionUuid}`} className={this.props.classes.backLink}>
<BackIcon className={this.props.classes.backIcon} />
- Back test
+ Back
</Link> */}
<DataExplorer
id={COLLECTIONS_CONTENT_ADDRESS_PANEL_ID}