@@ -41,7 +41,7 @@ var TutorialInfo = (function (_super) {
4141 this . props . initialize ( {
4242 description : '' ,
4343 version : '0.1.0' ,
44- keywords : 'coderoad, tutorial '
44+ keywords : ''
4545 } ) ;
4646 } ;
4747 TutorialInfo . prototype . componentDidMount = function ( ) {
@@ -58,7 +58,7 @@ var TutorialInfo = (function (_super) {
5858 var description = values . description , version = values . version , keywords = values . keywords ;
5959 this . props . save ( Object . assign ( { } , this . props . packageJson , {
6060 description : description , version : version ,
61- keywords : keywords . split ( ',' )
61+ keywords : ( "coderoad, tutorial" + ( keywords . length ? ', ' + keywords : '' ) ) . split ( ', ' )
6262 } ) ) ;
6363 } ;
6464 TutorialInfo . prototype . render = function ( ) {
@@ -69,17 +69,17 @@ var TutorialInfo = (function (_super) {
6969 React . createElement ( redux_form_1 . Field , { name : 'description' , component : textField_1 . default . bind ( null , {
7070 hintText : 'Tutorial description' ,
7171 floatingLabelText : 'Description' ,
72- } ) } ) ,
72+ } ) , tabIndex : '1' } ) ,
7373 React . createElement ( redux_form_1 . Field , { name : 'version' , component : textField_1 . default . bind ( null , {
7474 hintText : '0.1.0' ,
7575 floatingLabelText : 'Version' ,
7676 disabled : true ,
77- } ) } ) ,
77+ } ) , tabIndex : '2' } ) ,
7878 React . createElement ( redux_form_1 . Field , { name : 'keywords' , component : textField_1 . default . bind ( null , {
7979 hintText : 'coderoad, react, js, etc' ,
8080 floatingLabelText : 'Keywords' ,
81- } ) } ) ,
82- React . createElement ( RaisedButton_1 . default , { type : 'submit' , style : styles . button , label : 'Save' , primary : true , disabled : pristine || submitting || invalid } ) ) ) ) ;
81+ } ) , tabIndex : '3' } ) ,
82+ React . createElement ( RaisedButton_1 . default , { type : 'submit' , style : styles . button , label : 'Save' , primary : true , disabled : invalid } ) ) ) ) ;
8383 } ;
8484 TutorialInfo = __decorate ( [
8585 react_redux_1 . connect ( function ( state ) { return ( {
0 commit comments