From 662e3949adafffc1a246dcc514f5cd148751968b Mon Sep 17 00:00:00 2001 From: irismarie Date: Tue, 13 Apr 2021 15:22:19 +0200 Subject: [PATCH] changed button for signal autoconf, see #250 --- src/common/table-column.js | 1 + src/common/table.js | 17 +++++++++++++++++ src/componentconfig/config-table.js | 8 ++++---- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/common/table-column.js b/src/common/table-column.js index 887d70b..042010b 100644 --- a/src/common/table-column.js +++ b/src/common/table-column.js @@ -27,6 +27,7 @@ class TableColumn extends Component { deleteButton: false, showDeleteButton: null, exportButton: false, + signalButton: false, duplicateButton: false, isLocked: null, locked: false, diff --git a/src/common/table.js b/src/common/table.js index 7ea7d1f..09a9b4a 100644 --- a/src/common/table.js +++ b/src/common/table.js @@ -183,6 +183,23 @@ class CustomTable extends Component { ); } + if (child.props.signalButton) { + cell.push( + Autoconfigure Signals } + > + + + ); + } + if (child.props.duplicateButton) { cell.push( this.signalsAutoConf(index)} - width={150} + title='Autoconfigure Signals' + signalButton + onAutoConf={(index) => this.signalsAutoConf(index)} + width={170} />