From a4223aa6d0f24d2295d6cfc6cc42edc6ca15b729 Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Wed, 24 Feb 2021 11:28:46 +0100 Subject: [PATCH] another fix for determination of external IC in IC table, edit and delete buttons should not show in case of external ic --- src/ic/ics.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ic/ics.js b/src/ic/ics.js index 6024e10..026695b 100644 --- a/src/ic/ics.js +++ b/src/ic/ics.js @@ -405,7 +405,7 @@ class InfrastructureComponents extends Component { this.isExternalIC(index, ics)} + checkboxDisabled={(index) => this.isExternalIC(index, ics) === true} onChecked={(ic, event) => this.onICChecked(ic, event)} width='30' /> @@ -438,9 +438,9 @@ class InfrastructureComponents extends Component { {this.state.currentUser.role === "Admin" ? !this.isExternalIC(index, ics)} + editButton = {(index) => this.isExternalIC(index, ics) !== true} exportButton - deleteButton = {(index) => !this.isExternalIC(index, ics)} + deleteButton = {(index) => this.isExternalIC(index, ics) !== true} onEdit={index => this.setState({editModal: true, modalIC: ics[index], modalIndex: index})} onExport={index => this.exportIC(index)} onDelete={index => this.setState({deleteModal: true, modalIC: ics[index], modalIndex: index})}