@@ -95,25 +95,21 @@ qx.Class.define("osparc.info.CommentAdd", {
9595 column : 1
9696 } ) ;
9797 break ;
98- case "buttons-layout" :
99- control = new qx . ui . container . Composite ( new qx . ui . layout . HBox ( 5 ) . set ( {
100- alignX : "right"
101- } ) ) ;
102- this . _add ( control ) ;
103- break ;
104- case "notify-user-button" :
105- control = new qx . ui . form . Button ( this . tr ( "Notify user" ) ) . set ( {
98+ case "add-comment-button" :
99+ control = new qx . ui . form . Button ( this . tr ( "Add message" ) ) . set ( {
106100 appearance : "form-button" ,
107101 allowGrowX : false ,
102+ alignX : "right"
108103 } ) ;
109- this . getChildControl ( "buttons-layout" ) . add ( control ) ;
104+ this . _add ( control ) ;
110105 break ;
111- case "add-comment -button" :
112- control = new qx . ui . form . Button ( this . tr ( "Add message " ) ) . set ( {
106+ case "notify-user -button" :
107+ control = new qx . ui . form . Button ( "🔔 " + this . tr ( "Notify user " ) ) . set ( {
113108 appearance : "form-button" ,
114109 allowGrowX : false ,
110+ alignX : "right"
115111 } ) ;
116- this . getChildControl ( "buttons-layout" ) . add ( control ) ;
112+ this . _add ( control ) ;
117113 break ;
118114 }
119115
@@ -124,11 +120,11 @@ qx.Class.define("osparc.info.CommentAdd", {
124120 this . getChildControl ( "thumbnail" ) ;
125121 this . getChildControl ( "comment-field" ) ;
126122
127- const notifyUserButton = this . getChildControl ( "notify-user-button" ) ;
128- notifyUserButton . addListener ( "execute" , ( ) => this . __notifyUserTapped ( ) ) ;
129-
130123 const addMessageButton = this . getChildControl ( "add-comment-button" ) ;
131124 addMessageButton . addListener ( "execute" , ( ) => this . __addComment ( ) ) ;
125+
126+ const notifyUserButton = this . getChildControl ( "notify-user-button" ) ;
127+ notifyUserButton . addListener ( "execute" , ( ) => this . __notifyUserTapped ( ) ) ;
132128 } ,
133129
134130 __notifyUserTapped : function ( ) {
0 commit comments