From c2d0378ee51eea263edc54631101e60504613abb Mon Sep 17 00:00:00 2001 From: Laura Fuentes Grau Date: Sat, 24 Oct 2020 19:01:05 +0200 Subject: [PATCH] Edit button disabled for externally managed ICs #266 --- src/common/table.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/table.js b/src/common/table.js index 87a52be..b1c32f5 100644 --- a/src/common/table.js +++ b/src/common/table.js @@ -103,8 +103,9 @@ class CustomTable extends Component { // add buttons if (child.props.editButton) { - cell.push( Edit } > - ); + let disable = (typeof data.managedexternally !== "undefined" && data.managedexternally); + cell.push({disable? "Externally managed ICs cannot be edited" : "edit"} } > + ); } if (child.props.deleteButton) {