@@ -20,9 +20,15 @@ var FlatButton_1 = require('material-ui/FlatButton');
2020var RaisedButton_1 = require ( 'material-ui/RaisedButton' ) ;
2121var actions_1 = require ( '../../actions' ) ;
2222var styles = {
23+ dialog : {
24+ textAlign : 'center' ,
25+ } ,
2326 cancel : {
2427 float : 'right' ,
2528 } ,
29+ note : {
30+ float : 'left' ,
31+ } ,
2632} ;
2733var PublishOptionsModal = ( function ( _super ) {
2834 __extends ( PublishOptionsModal , _super ) ;
@@ -36,13 +42,23 @@ var PublishOptionsModal = (function (_super) {
3642 PublishOptionsModal . prototype . render = function ( ) {
3743 var _a = this . props , open = _a . open , handleClose = _a . handleClose , version = _a . version , updated = _a . updated ;
3844 return ( React . createElement ( "div" , null ,
39- React . createElement ( Dialog_1 . default , { title : "Current Version: " + version , modal : true , open : open , onRequestClose : handleClose } ,
40- ! updated ? React . createElement ( "p" , null , "Tutorial has not changed." ) : null ,
41- "Select next version change:" ,
45+ React . createElement ( Dialog_1 . default , { style : styles . dialog , title : 'Publish Next Version' , modal : true , open : open , onRequestClose : handleClose } ,
46+ React . createElement ( "h2" , null ,
47+ "Current: v" ,
48+ version ) ,
49+ ! updated
50+ ? React . createElement ( "p" , null , "Cannot publish. Tutorial has not changed." )
51+ : React . createElement ( "p" , null , "Describe the semver change:" ) ,
52+ React . createElement ( "br" , null ) ,
4253 React . createElement ( FlatButton_1 . default , { label : 'Patch' , primary : true , disabled : ! updated , onTouchTap : this . publish . bind ( this , 'patch' ) } ) ,
4354 React . createElement ( FlatButton_1 . default , { label : 'Minor' , disabled : ! updated , onTouchTap : this . publish . bind ( this , 'minor' ) } ) ,
4455 React . createElement ( FlatButton_1 . default , { label : 'Major' , disabled : ! updated , onTouchTap : this . publish . bind ( this , 'major' ) } ) ,
4556 React . createElement ( "br" , null ) ,
57+ React . createElement ( "br" , null ) ,
58+ React . createElement ( "p" , { style : styles . note } ,
59+ "What is " ,
60+ React . createElement ( "a" , { href : 'http://semver.org/' } , "semver" ) ,
61+ "?" ) ,
4662 React . createElement ( RaisedButton_1 . default , { style : styles . cancel , label : 'Cancel' , secondary : true , onTouchTap : handleClose } ) )
4763 ) ) ;
4864 } ;
0 commit comments