Remove link in related panel's header
authorFrank Bessou <frank.bessou@logilab.fr>
Fri, 28 Apr 2017 15:30:56 +0200
changeset 154 b2335ad43c16
parent 153 4c6627371402
child 155 12900847264e
Remove link in related panel's header The link was hardcoded.
src/components/Entity.js
--- a/src/components/Entity.js	Fri Apr 28 13:22:50 2017 +0200
+++ b/src/components/Entity.js	Fri Apr 28 15:30:56 2017 +0200
@@ -1,7 +1,6 @@
 import React from 'react';
 import {PropTypes} from 'prop-types';
 import {FormWrapper} from './Form';
-import {Link} from 'react-router-dom';
 
 import {isEmpty} from 'lodash/lang';
 import {merge} from 'lodash/object';
@@ -104,15 +103,10 @@
     }
 
     renderTitle() {
-        const {etype, eid, rtype} = this.props;
         const title = this.props.rtype;
         return (
             <div>
                 { title }
-                <Link to={`/${etype}/${eid}/relationships/${rtype}`}
-                    title="add"
-                    className="glyphicon glyphicon-plus pull-right"
-                />
             </div>
         );
     }