Skip to content

Commit

Permalink
add file:save menu entry
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielflorit committed Nov 28, 2014
1 parent e6b7b1c commit e6bdcf7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/Livecoding.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ var Livecoding = React.createClass({
});

break;

case 'file:save':

console.log('TODO');
break;
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/js/Menubar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ var MenuBar = React.createClass({
<li className={this.state.selectedMenu === 'file' && this.state.selectedItem === 'new' ? 'current' : ''}>
<button onClick={this.handleItemClick} className='menubutton' onMouseEnter={this.handleItemMouseEnter}>new</button>
</li>
<li className={this.state.selectedMenu === 'file' && this.state.selectedItem === 'save' ? 'current' : ''}>
<button onClick={this.handleItemClick} className='menubutton' onMouseEnter={this.handleItemMouseEnter}>save</button>
</li>
</ul>
</li>
</ul>
Expand Down

0 comments on commit e6bdcf7

Please sign in to comment.