|
@@ -81,6 +81,7 @@ class Schema extends Component {
|
|
|
|
|
|
|
|
render() {
|
|
render() {
|
|
|
let userID = this.props.userID;
|
|
let userID = this.props.userID;
|
|
|
|
|
+ let trialcase = this.props.trialcase;
|
|
|
return (
|
|
return (
|
|
|
<Query query={gql(SHOW_TABLE)} variables={{schema_id: this.state.schemaID}}>
|
|
<Query query={gql(SHOW_TABLE)} variables={{schema_id: this.state.schemaID}}>
|
|
|
|
|
|
|
@@ -118,7 +119,7 @@ class Schema extends Component {
|
|
|
<div className={'schema'}>
|
|
<div className={'schema'}>
|
|
|
<span className={'schema-name'}>{this.state.schemaName}</span>
|
|
<span className={'schema-name'}>{this.state.schemaName}</span>
|
|
|
{
|
|
{
|
|
|
- userID === 'ioobot' ?
|
|
|
|
|
|
|
+ trialcase ?
|
|
|
''
|
|
''
|
|
|
:
|
|
:
|
|
|
<Icon style={{marginLeft: 15}}
|
|
<Icon style={{marginLeft: 15}}
|
|
@@ -142,7 +143,7 @@ class Schema extends Component {
|
|
|
className={'schema-table-title'}>Remark</span></Col>
|
|
className={'schema-table-title'}>Remark</span></Col>
|
|
|
<Col span={2} offset={2}>
|
|
<Col span={2} offset={2}>
|
|
|
{
|
|
{
|
|
|
- userID === 'ioobot' ?
|
|
|
|
|
|
|
+ trialcase ?
|
|
|
''
|
|
''
|
|
|
:
|
|
:
|
|
|
<span
|
|
<span
|
|
@@ -179,7 +180,7 @@ class Schema extends Component {
|
|
|
|
|
|
|
|
<span className={'schema-table-content'}>
|
|
<span className={'schema-table-content'}>
|
|
|
{
|
|
{
|
|
|
- userID === 'ioobot'?
|
|
|
|
|
|
|
+ trialcase?
|
|
|
''
|
|
''
|
|
|
:
|
|
:
|
|
|
<DeleteTableButton
|
|
<DeleteTableButton
|
|
@@ -218,7 +219,7 @@ class Schema extends Component {
|
|
|
<Col span={2} offset={2}>
|
|
<Col span={2} offset={2}>
|
|
|
<span className={'schema-table-content'}>
|
|
<span className={'schema-table-content'}>
|
|
|
{
|
|
{
|
|
|
- userID === 'ioobot'?
|
|
|
|
|
|
|
+ trialcase?
|
|
|
''
|
|
''
|
|
|
:
|
|
:
|
|
|
<DeleteTableButton
|
|
<DeleteTableButton
|
|
@@ -241,7 +242,7 @@ class Schema extends Component {
|
|
|
<Row>
|
|
<Row>
|
|
|
<Col span={4}>
|
|
<Col span={4}>
|
|
|
{
|
|
{
|
|
|
- userID === 'ioobot'?
|
|
|
|
|
|
|
+ trialcase?
|
|
|
<div className={'delete-schema'}>
|
|
<div className={'delete-schema'}>
|
|
|
<Button
|
|
<Button
|
|
|
type="primary"
|
|
type="primary"
|
|
@@ -287,6 +288,7 @@ class Schema extends Component {
|
|
|
schemaName={this.state.schemaName}
|
|
schemaName={this.state.schemaName}
|
|
|
userID={userID}
|
|
userID={userID}
|
|
|
goBack={this.goBack}
|
|
goBack={this.goBack}
|
|
|
|
|
+ trialcase={trialcase}
|
|
|
/> :
|
|
/> :
|
|
|
<Table
|
|
<Table
|
|
|
currentTable={this.state.currentTable}
|
|
currentTable={this.state.currentTable}
|
|
@@ -297,6 +299,7 @@ class Schema extends Component {
|
|
|
schemaName={this.state.schemaName}
|
|
schemaName={this.state.schemaName}
|
|
|
userID={userID}
|
|
userID={userID}
|
|
|
goBack={this.goBack}
|
|
goBack={this.goBack}
|
|
|
|
|
+ trialcase={trialcase}
|
|
|
/>
|
|
/>
|
|
|
}
|
|
}
|
|
|
|
|
|