Skip to content

Commit bb67aa9

Browse files
committed
fix toolbar console button
1 parent 725fe94 commit bb67aa9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
55
## [0.5.7] - 2016-03-17
66
- @action(openConsole)
77
- style improvements
8-
- bug fixes
8+
- bug fixes for Atom 1.6-beta
99

1010
## [0.5.6] - 2016-03-12
1111
- fixes for Windows

lib/components/page/toolbar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ var react_redux_1 = require('react-redux');
1818
var Action = require('../../actions/actions');
1919
var material_ui_1 = require('material-ui');
2020
var editor_1 = require('../../atom/editor');
21+
var actions_1 = require('../../atom/actions');
2122
var Code = require('material-ui/lib/svg-icons/action/code');
2223
var ProgressBar = function (_a) {
2324
var progress = _a.progress;
@@ -43,7 +44,7 @@ var default_1 = (function (_super) {
4344
default_1.prototype.render = function () {
4445
var _a = this.props, tasks = _a.tasks, taskPosition = _a.taskPosition;
4546
var progress = taskProgress(taskPosition, tasks.length);
46-
return (React.createElement("section", {className: 'cr-page-toolbar'}, React.createElement(ProgressBar, {progress: progress}), React.createElement(material_ui_1.Toolbar, null, React.createElement(material_ui_1.ToolbarGroup, {float: 'left'}, React.createElement(material_ui_1.FlatButton, {icon: React.createElement(Code, null), onTouchTap: editor_1.toggleDevTools})), React.createElement(material_ui_1.ToolbarGroup, {float: 'right'}, this.getButton()))));
47+
return (React.createElement("section", {className: 'cr-page-toolbar'}, React.createElement(ProgressBar, {progress: progress}), React.createElement(material_ui_1.Toolbar, null, React.createElement(material_ui_1.ToolbarGroup, {float: 'left'}, React.createElement(material_ui_1.FlatButton, {icon: React.createElement(Code, null), onTouchTap: actions_1.toggleDevTools})), React.createElement(material_ui_1.ToolbarGroup, {float: 'right'}, this.getButton()))));
4748
};
4849
default_1 = __decorate([
4950
react_redux_1.connect(null, function (dispatch, state) {

src/components/page/toolbar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import * as React from 'react';
22
import {connect} from 'react-redux';
33
import * as Action from '../../actions/actions';
44
import {LinearProgress, Toolbar, ToolbarGroup, RaisedButton, FlatButton} from 'material-ui';
5-
import {save, toggleDevTools} from '../../atom/editor';
5+
import {save} from '../../atom/editor';
6+
import {toggleDevTools} from '../../atom/actions';
67
import {store} from '../../_base';
78
const Code = require('material-ui/lib/svg-icons/action/code');
89

0 commit comments

Comments
 (0)