From d86c263732c16a2eb95f74b156be56f4e0638087 Mon Sep 17 00:00:00 2001 From: Simon Howe Date: Tue, 22 Jan 2019 16:22:58 +0100 Subject: [PATCH] Include the control's id as an attr on the button - To allow easy CSS selection of a particular button. We might want to hide it in some cases or give it a different color etc. --- .../components/node-details/node-details-control-button.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/app/scripts/components/node-details/node-details-control-button.js b/client/app/scripts/components/node-details/node-details-control-button.js index f40d3d879..23323f575 100644 --- a/client/app/scripts/components/node-details/node-details-control-button.js +++ b/client/app/scripts/components/node-details/node-details-control-button.js @@ -12,14 +12,14 @@ class NodeDetailsControlButton extends React.Component { } render() { - const { icon, human } = this.props.control; + const { icon, id, human } = this.props.control; const className = classNames('tour-step-anchor node-control-button', icon, { // Old Agent / plugins don't include the 'fa ' prefix, so provide it if they don't. fa: icon.startsWith('fa-'), 'node-control-button-pending': this.props.pending }); return ( - + ); }