@@ -88,28 +88,29 @@ qx.Class.define("osparc.FlashMessenger", {
8888 const msg = this . extractMessage ( error , defaultMessage ) ;
8989 const flashMessage = this . getInstance ( ) . logAs ( msg , "ERROR" , duration ) ;
9090 if ( error && error [ "supportId" ] ) {
91- flashMessage . addWidget ( this . __createCopyEOCWidget ( msg , error [ "supportId" ] ) ) ;
91+ flashMessage . addWidget ( this . __createCopyOECWidget ( msg , error [ "supportId" ] ) ) ;
92+ flashMessage . setDuration ( flashMessage . getDuration ( ) * 2 ) ;
9293 }
9394 return flashMessage ;
9495 } ,
9596
96- __createCopyEOCWidget : function ( message , supportId ) {
97+ __createCopyOECWidget : function ( message , supportId ) {
9798 const errorLabel = new qx . ui . basic . Atom ( ) . set ( {
9899 label : supportId ,
99100 icon : "@FontAwesome5Solid/copy/10" ,
100101 iconPosition : "right" ,
101102 gap : 8 ,
102103 cursor : "pointer" ,
103104 alignX : "center" ,
104- allowGrowX : true ,
105+ allowGrowX : false ,
105106 } ) ;
106107 errorLabel . addListener ( "tap" , ( ) => {
107108 const dataToClipboard = {
108109 message,
109110 supportId,
110111 timestamp : new Date ( ) . toString ( ) ,
111112 url : window . location . href ,
112- studyId : osparc . store . Store . getInstance ( ) . getCurrentStudy ( ) ? osparc . store . Store . getInstance ( ) . getCurrentStudy ( ) . getUuid ( ) : "" ,
113+ studyId : osparc . store . Store . getInstance ( ) . getCurrentStudy ( ) || "" ,
113114 }
114115 osparc . utils . Utils . copyTextToClipboard ( JSON . stringify ( dataToClipboard ) ) ;
115116 } ) ;
0 commit comments