1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

Add column for ManagedExternally parameter #266

This commit is contained in:
Laura Fuentes Grau 2020-10-24 13:37:17 +02:00
parent 95dd9330db
commit edf1e51a21

View file

@ -291,6 +291,16 @@ class InfrastructureComponents extends Component {
return dateTime.toLocaleString('de-DE');
}
modifyManagedExternallyColumn(managedExternally){
if(managedExternally){
return <Icon icon='check' />
} else {
return <Icon icon='times' />
}
}
render() {
const buttonStyle = {
marginLeft: '10px'
@ -306,6 +316,7 @@ class InfrastructureComponents extends Component {
<TableColumn title='State' labelKey='state' tooltipKey='error' labelStyle={(state, component) => this.stateLabelStyle(state, component)} />
<TableColumn title='Category' dataKeys={['category', 'rawProperties.category']} />
<TableColumn title='Type' dataKeys={['type', 'rawProperties.type']} />
<TableColumn title='Managed externally' dataKey='managedexternally' modifier={(managedexternally) => this.modifyManagedExternallyColumn(managedexternally)} width='105' />
<TableColumn title='Location' dataKeys={['properties.location', 'rawProperties.location']} />
{/* <TableColumn title='Realm' dataKeys={['properties.realm', 'rawProperties.realm']} /> */}
<TableColumn title='WebSocket Endpoint' dataKey='host' />