Display schema's title as title in EntityView
authorFrank Bessou <frank.bessou@logilab.fr>
Thu, 04 May 2017 17:37:10 +0200
changeset 181 6aa82b1bd05e
parent 180 99abdceaf645
child 182 353a3e2767ab
Display schema's title as title in EntityView
src/components/Entity.js
--- a/src/components/Entity.js	Thu May 04 17:21:01 2017 +0200
+++ b/src/components/Entity.js	Thu May 04 17:37:10 2017 +0200
@@ -263,8 +263,7 @@
 export class EntityView extends React.Component {
 
     renderTitle() {
-        const {etype, eid} = this.props.entity;
-        return `${etype} #${eid}`;
+        return this.props.entity.data.schemas().title();
     }
 
     renderActions() {