diff --git a/src/ic/ic-dialog.js b/src/ic/ic-dialog.js index 6e225a5..68276e7 100644 --- a/src/ic/ic-dialog.js +++ b/src/ic/ic-dialog.js @@ -121,12 +121,15 @@ class ICDialog extends React.Component { )} - + {this.props.userRole === "Admin"? ( +
Controls:
+
) + : (
) } this.closeConfirmModal(c)} /> diff --git a/src/ic/ics.js b/src/ic/ics.js index aa0fffa..a1e494c 100644 --- a/src/ic/ics.js +++ b/src/ic/ics.js @@ -436,7 +436,7 @@ class InfrastructureComponents extends Component { this.closeNewModal(data)} /> this.closeEditModal(data)} ic={this.state.modalIC} /> this.closeImportModal(data)} /> - this.closeICModal(data)} ic={this.state.modalIC} token={this.state.sessionToken} icStatus={this.state.modalICStatus} icGraph={this.state.modalICGraph} sendControlCommand={(command, ic) => this.sendControlCommand(command, ic)}/> + this.closeICModal(data)} ic={this.state.modalIC} token={this.state.sessionToken} userRole={this.state.currentUser.role} icStatus={this.state.modalICStatus} icGraph={this.state.modalICGraph} sendControlCommand={(command, ic) => this.sendControlCommand(command, ic)}/> this.closeDeleteModal(e)} />