File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
services/static-webserver/client/source/class/osparc/jobs Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ qx.Class.define("osparc.jobs.SubRunsTable", {
145145 } ,
146146
147147 __handleButtonClick : function ( action , row ) {
148+ this . resetSelection ( ) ;
148149 const rowData = this . getTableModel ( ) . getRowData ( row ) ;
149150 switch ( action ) {
150151 case "info" : {
@@ -161,6 +162,23 @@ qx.Class.define("osparc.jobs.SubRunsTable", {
161162 win . setCaption ( rowData [ "nodeName" ] ) ;
162163 break ;
163164 }
165+ case "logs" : {
166+ const job = osparc . store . Jobs . getInstance ( ) . getJob ( rowData [ "projectUuid" ] ) ;
167+ if ( ! job ) {
168+ return ;
169+ }
170+ const subJob = job . getSubJob ( rowData [ "nodeId" ] ) ;
171+ if ( ! subJob ) {
172+ return ;
173+ }
174+ const logDownloadLink = subJob . getLogDownloadLink ( )
175+ if ( logDownloadLink ) {
176+ osparc . utils . Utils . downloadLink ( logDownloadLink , "GET" , rowData [ "nodeName" ] + ".logs" ) ;
177+ } else {
178+ osparc . component . message . FlashMessenger . getInstance ( ) . logAsWarning ( this . tr ( "No logs available" ) ) ;
179+ }
180+ break ;
181+ }
164182 default :
165183 console . warn ( `Unknown action: ${ action } ` ) ;
166184 break ;
You can’t perform that action at this time.
0 commit comments