@@ -17,9 +17,10 @@ var React = require('react');
17
17
var react_redux_1 = require ( 'react-redux' ) ;
18
18
var Action = require ( '../../actions/actions' ) ;
19
19
var material_ui_1 = require ( 'material-ui' ) ;
20
+ var editor_1 = require ( '../../atom/editor' ) ;
20
21
var ProgressBar = function ( _a ) {
21
22
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 ' } } ) ;
23
24
} ;
24
25
function taskProgress ( current , max ) {
25
26
return ( current / max ) * 100 ;
@@ -37,13 +38,13 @@ var default_1 = (function (_super) {
37
38
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 ?
38
39
React . createElement ( material_ui_1 . RaisedButton , { label :'Continue' , primary :true , onTouchTap :callNextPage } )
39
40
:
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 } ) ) ) ) ) ;
41
42
} ;
42
43
default_1 = __decorate ( [
43
44
react_redux_1 . connect ( null , function ( dispatch , state ) {
44
45
return {
45
46
callNextPage :function ( ) { return dispatch ( Action . nextPage ( ) ) ; } ,
46
- callRunTests :function ( ) { return dispatch ( Action . runTests ( ) ) ; } ,
47
+ callSave :function ( ) { return editor_1 . save ( ) ; } ,
47
48
toggleLog :function ( ) { return dispatch ( Action . toggleLog ( ) ) ; }
48
49
} ;
49
50
} ) ,