@@ -17,9 +17,10 @@ var React = require('react');
1717var react_redux_1 = require ( 'react-redux' ) ;
1818var Action = require ( '../../actions/actions' ) ;
1919var material_ui_1 = require ( 'material-ui' ) ;
20+ var editor_1 = require ( '../../atom/editor' ) ;
2021var ProgressBar = function ( _a ) {
2122 var progress = _a . progress ;
22- return React . createElement ( material_ui_1 . LinearProgress , { mode : 'determinate' , value : progress , style : { height : '8px ' } } ) ;
23+ return React . createElement ( material_ui_1 . LinearProgress , { mode : 'determinate' , value : progress , style : { height : '10px ' } } ) ;
2324} ;
2425function taskProgress ( current , max ) {
2526 return ( current / max ) * 100 ;
@@ -37,13 +38,13 @@ var default_1 = (function (_super) {
3738 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 : 'right' } , allComplete ?
3839 React . createElement ( material_ui_1 . RaisedButton , { label : 'Continue' , primary : true , onTouchTap : callNextPage } )
3940 :
40- React . createElement ( material_ui_1 . RaisedButton , { label : 'Run ' , secondary : true , onTouchTap : callRunTests } ) ) ) ) ) ;
41+ React . createElement ( material_ui_1 . RaisedButton , { label : 'Save ' , secondary : true , onTouchTap : callRunTests } ) ) ) ) ) ;
4142 } ;
4243 default_1 = __decorate ( [
4344 react_redux_1 . connect ( null , function ( dispatch , state ) {
4445 return {
4546 callNextPage : function ( ) { return dispatch ( Action . nextPage ( ) ) ; } ,
46- callRunTests : function ( ) { return dispatch ( Action . runTests ( ) ) ; } ,
47+ callSave : function ( ) { return editor_1 . save ( ) ; } ,
4748 toggleLog : function ( ) { return dispatch ( Action . toggleLog ( ) ) ; }
4849 } ;
4950 } ) ,
0 commit comments