X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Fcomposer%2Fsrc%2Fsrc%2Fcomponents%2FButton.js;h=65b90fdfc626b7a547b3fffc0a2db5e6d7a0f4f1;hb=6fc3e77438cd4e53c5d5f21512ee8ca260469ca8;hp=6ef41bf93c6f0b1c658a18f35f3b63265687c9c8;hpb=119e39d96483d5cec756be95cc0cb735fb6f9a74;p=osm%2FUI.git diff --git a/skyquake/plugins/composer/src/src/components/Button.js b/skyquake/plugins/composer/src/src/components/Button.js index 6ef41bf93..65b90fdfc 100644 --- a/skyquake/plugins/composer/src/src/components/Button.js +++ b/skyquake/plugins/composer/src/src/components/Button.js @@ -58,8 +58,15 @@ const Button = React.createClass({ const title = this.props.title; const draggable = this.props.draggable; const className = ClassNames(this.props.className, 'Button'); + let style = { + } + if(this.props.disabled) { + style.pointerEvents = 'none'; + style.cursor = 'not-allowed'; + style.opacity = 0.25; + } return ( -
+
{ src ? : null } {label}