diff options
author | Pavel Paroulek <pavel.paroulek@orange.com> | 2019-06-08 13:37:14 +0200 |
---|---|---|
committer | Pavel Paroulek <pavel.paroulek@orange.com> | 2019-06-08 13:37:14 +0200 |
commit | 23874dc27b9fbccb7c160aac0ae65f5b94c4af54 (patch) | |
tree | dbbd9d18bbc56d319afc1b6976b0885bac3dd706 /graphgraph-fe | |
parent | 139cd0b480e40fe11c5aeb24789c7fe61161b38b (diff) |
Adding types of attributes
Change-Id: I099d6b836080e90a624f075c7f12895114a496b3
Issue-ID: AAI-531
Signed-off-by: Pavel Paroulek <pavel.paroulek@orange.com>
Diffstat (limited to 'graphgraph-fe')
-rw-r--r-- | graphgraph-fe/src/GraphInfoMenu.js | 18 | ||||
-rw-r--r-- | graphgraph-fe/src/GraphSettingsMenu.js | 2 |
2 files changed, 11 insertions, 9 deletions
diff --git a/graphgraph-fe/src/GraphInfoMenu.js b/graphgraph-fe/src/GraphInfoMenu.js index 3f21194..d001d50 100644 --- a/graphgraph-fe/src/GraphInfoMenu.js +++ b/graphgraph-fe/src/GraphInfoMenu.js @@ -6,9 +6,6 @@ import ReactTable from "react-table"; import "react-table/react-table.css"; class GraphInfoMenu extends React.Component { - constructor (props) { - super(props) - } render () { var paths = this.props.paths @@ -27,30 +24,35 @@ class GraphInfoMenu extends React.Component { { Header: "Attribute", accessor: "propertyName", - minWidth: 50 + minWidth: 40 + }, + { + Header: "Type", + accessor: "type", + minWidth: 70 }, { Header: "Description", accessor: "description", - minWidth: 300 + minWidth: 260 }, { id: "Key", Header: "Key", accessor: p => p.key ? "yes" : "", - minWidth: 30 + minWidth: 20 }, { id: "Index", Header: "Index", accessor: p => p.index ? "yes" : "", - minWidth: 30 + minWidth: 20 }, { id: "Required", Header: "Required", accessor: p => p.required ? "yes" : "", - minWidth: 30 + minWidth: 20 } ]} defaultPageSize={4} diff --git a/graphgraph-fe/src/GraphSettingsMenu.js b/graphgraph-fe/src/GraphSettingsMenu.js index 819537d..5ce1e12 100644 --- a/graphgraph-fe/src/GraphSettingsMenu.js +++ b/graphgraph-fe/src/GraphSettingsMenu.js @@ -1,6 +1,6 @@ import React from 'react' import GraphSettings from './GraphSettings' -import { Navbar, FormGroup, Nav } from 'react-bootstrap' +import { Navbar, Nav } from 'react-bootstrap' import './GraphSettingsMenu.css' class GraphSettingsMenu extends React.Component { |