+
+ {this.state.currentUser.role === "Admin" && this.state.numberOfExternalICs > 0 ?
+
this.runAction(action)}
actions={[
- { id: '-1', title: 'Select command', data: { action: 'none' } },
- { id: '0', title: 'Reset', data: { action: 'reset' } },
- { id: '1', title: 'Shutdown', data: { action: 'shutdown' } },
- ]}
+ {id: '-1', title: 'Select command', data: {action: 'none'}},
+ {id: '0', title: 'Reset', data: {action: 'reset'}},
+ {id: '1', title: 'Shutdown', data: {action: 'shutdown'}},
+ ]}
/>
:
-
- }
-
- {this.state.currentUser.role === "Admin" ?
-
-
-
-
- :
-
+
}