@@ -4,11 +4,22 @@ var __extends = (this && this.__extends) || function (d, b) {
44 function __ ( ) { this . constructor = d ; }
55 d . prototype = b === null ? Object . create ( b ) : ( __ . prototype = b . prototype , new __ ( ) ) ;
66} ;
7+ var __decorate = ( this && this . __decorate ) || function ( decorators , target , key , desc ) {
8+ var c = arguments . length , r = c < 3 ? target : desc === null ? desc = Object . getOwnPropertyDescriptor ( target , key ) : desc , d ;
9+ if ( typeof Reflect === "object" && typeof Reflect . decorate === "function" ) r = Reflect . decorate ( decorators , target , key , desc ) ;
10+ else for ( var i = decorators . length - 1 ; i >= 0 ; i -- ) if ( d = decorators [ i ] ) r = ( c < 3 ? d ( r ) : c > 3 ? d ( target , key , r ) : d ( target , key ) ) || r ;
11+ return c > 3 && r && Object . defineProperty ( target , key , r ) , r ;
12+ } ;
13+ var __metadata = ( this && this . __metadata ) || function ( k , v ) {
14+ if ( typeof Reflect === "object" && typeof Reflect . metadata === "function" ) return Reflect . metadata ( k , v ) ;
15+ } ;
716var React = require ( 'react' ) ;
17+ var react_redux_1 = require ( 'react-redux' ) ;
818var PageDescription_1 = require ( './PageDescription' ) ;
919var Tasks_1 = require ( './Tasks' ) ;
1020var TasksComplete_1 = require ( './TasksComplete' ) ;
1121var TopPanel_1 = require ( '../TopPanel' ) ;
22+ var actions_1 = require ( '../../actions' ) ;
1223var styles = {
1324 height : '100%' ,
1425 width : '100%' ,
@@ -20,6 +31,7 @@ var Page = (function (_super) {
2031 _super . apply ( this , arguments ) ;
2132 }
2233 Page . prototype . componentDidMount = function ( ) {
34+ this . props . editorMarkdownOpen ( null , null ) ;
2335 TopPanel_1 . topElement . toggle ( true ) ;
2436 } ;
2537 Page . prototype . componentWillUnmount = function ( ) {
@@ -31,6 +43,10 @@ var Page = (function (_super) {
3143 React . createElement ( Tasks_1 . default , null ) ,
3244 React . createElement ( TasksComplete_1 . default , null ) ) ) ;
3345 } ;
46+ Page = __decorate ( [
47+ react_redux_1 . connect ( null , { editorMarkdownOpen : actions_1 . editorMarkdownOpen } ) ,
48+ __metadata ( 'design:paramtypes' , [ ] )
49+ ] , Page ) ;
3450 return Page ;
3551} ( React . Component ) ) ;
3652Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
0 commit comments