From 0da87910566fb6634df3c61bacd65e4d756e11f6 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 8 Mar 2021 14:53:08 +0100 Subject: [PATCH] cosmetic code cleanups --- src/common/table-column.js | 1 - src/common/table.js | 5 +++-- src/scenario/scenario.js | 44 +++++++++++++++++++++++++++----------- 3 files changed, 35 insertions(+), 15 deletions(-) diff --git a/src/common/table-column.js b/src/common/table-column.js index 460eb4b..2711537 100644 --- a/src/common/table-column.js +++ b/src/common/table-column.js @@ -40,7 +40,6 @@ class TableColumn extends Component { checkboxDisabled: null, labelStyle: null, labelModifier: null - }; render() { diff --git a/src/common/table.js b/src/common/table.js index f54335e..78d3b55 100644 --- a/src/common/table.js +++ b/src/common/table.js @@ -83,12 +83,13 @@ class CustomTable extends Component { Download {contentvalue}} > + overlay={Download {contentvalue}} + > ); diff --git a/src/scenario/scenario.js b/src/scenario/scenario.js index 5dc949f..7770b64 100644 --- a/src/scenario/scenario.js +++ b/src/scenario/scenario.js @@ -746,11 +746,20 @@ class Scenario extends React.Component { dataKey='id' modifier={(id, result) => this.modifyResultNoColumn(id, result)} /> - - - + + + this.downloadResultData(index)} /> this.signalsAutoConf(index)} /> - this.getICName(icID)} /> + this.getICName(icID)} + /> } - < div style={{ clear: 'both' }} /> +
Users sharing this scenario
- - + + this.setState({ deleteUserModal: true, deleteUserName: this.state.scenario.users[index].username, modalUserIndex: index })} + onDelete={(index) => this.setState({ + deleteUserModal: true, + deleteUserName: this.state.scenario.users[index].username, + modalUserIndex: index + })} />
@@ -1009,8 +1031,6 @@ class Scenario extends React.Component {
this.closeDeleteUserModal(c)} /> - -
; } }