diff --git a/src/common/table.js b/src/common/table.js
index 8774d10..5471244 100644
--- a/src/common/table.js
+++ b/src/common/table.js
@@ -79,9 +79,19 @@ class CustomTable extends Component {
cell.push();
} else if (linkKey === 'filebuttons') {
content.forEach((contentvalue, contentkey) => {
- cell.push(Download {contentvalue}} >
- );
+ cell.push(
+ Download {contentvalue}} >
+
+ );
});
} else {
cell.push(content);
@@ -115,9 +125,18 @@ class CustomTable extends Component {
// add buttons
if (child.props.editButton) {
- let disable = (typeof data.managedexternally !== "undefined" && data.managedexternally);
- cell.push({disable ? "Externally managed ICs cannot be edited" : "edit"} } >
- );
+ cell.push(
+ Edit }>
+
+ );
}
if (child.props.checkbox) {
@@ -137,28 +156,78 @@ class CustomTable extends Component {
}
if (child.props.exportButton) {
- cell.push( Export } >
- );
+ cell.push(
+ Export } >
+
+ );
}
if (child.props.duplicateButton) {
- cell.push( Duplicate } >
- );
+ cell.push(
+ Duplicate } >
+
+ );
}
if (child.props.addRemoveFilesButton) {
- cell.push(Add/remove File(s)} >
- );
+ cell.push(
+ Add/remove File(s)} >
+
+ );
}
if (child.props.downloadAllButton) {
- cell.push(Download All Files} >
- );
+ cell.push(
+ Download All Files} >
+
+ );
}
if (child.props.deleteButton) {
- cell.push( Delete } >
- );
+ cell.push(
+ Delete } >
+
+ );
}
return cell;
@@ -244,9 +313,19 @@ class CustomTable extends Component {
onCellBlur: () => { }
};
- return (
+ return ( |
{(this.state.editCell[0] === cellIndex && this.state.editCell[1] === rowIndex) ? (
- children[cellIndex].props.onInlineChange(event, rowIndex, cellIndex)} ref={ref => { this.activeInput = ref; }} />
+ children[cellIndex].props.onInlineChange(event, rowIndex, cellIndex)}
+ ref={ref => { this.activeInput = ref; }} />
) : (
{cell.map((element, elementIndex) => (
|