diff --git a/app/components/gui/bigButton.js b/app/components/gui/bigButton.js index 22226f5..e061571 100644 --- a/app/components/gui/bigButton.js +++ b/app/components/gui/bigButton.js @@ -14,6 +14,7 @@ var log = require('../../logger'); var currentWindow = remote.getCurrentWindow(); + var BigButton = React.createClass({ propTypes: { idx: React.PropTypes.number, @@ -38,8 +39,9 @@ var BigButton = React.createClass({ // log.msg("BigButton.componentDidMount type:",this.props.type); // if( this.props.type !== 'sys' ) { this.menu = this.makeMenu(); } }, + // Make serials menu makeSerialsMenu: function() { - // Make serials menu + var self = this; var serialsmenu = null; if( this.props.serials && this.props.serials.length > 0 ) { serialsmenu = new Menu(); diff --git a/app/components/gui/bigButtonSet.js b/app/components/gui/bigButtonSet.js index a9d02d4..c268307 100644 --- a/app/components/gui/bigButtonSet.js +++ b/app/components/gui/bigButtonSet.js @@ -141,7 +141,13 @@ var BigButtonSet = React.createClass({ // internal function used by differnt kinds of buttons setBlink1Color: function(color, ledn, blink1id) { ledn = ledn || 0; // 0 means all + // if( blink1id === undefined ) { + // Blink1Service.getAllSerials().map( function(serial,idx) { + // Blink1Service.fadeToColor( 100, color, ledn, serial ); // FIXME: millis + // }); + // } else { Blink1Service.fadeToColor( 100, color, ledn, blink1id ); // FIXME: millis + // } }, // playPattern: function(patternid) { // PatternsService.playPatternFrom( patternid ); @@ -204,7 +210,7 @@ var BigButtonSet = React.createClass({ var self = this; var patterns = PatternsService.getAllPatterns(); var serials = Blink1Service.getAllSerials(); - + var createBigButtonSys = function(button, index) { // FIXME: understand bind() return (