File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
services/static-webserver/client/source/class/osparc/desktop Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -245,6 +245,7 @@ qx.Class.define("osparc.desktop.MainPage", {
245245 pollTasks . createPollingTask ( fetchPromise )
246246 . then ( task => {
247247 const templateBrowser = this . __dashboard . getTemplateBrowser ( ) ;
248+ const hypertoolBrowser = this . __dashboard . getHypertoolBrowser ( ) ;
248249 if ( templateBrowser ) {
249250 templateBrowser . taskToTemplateReceived ( task , studyName ) ;
250251 }
@@ -256,7 +257,14 @@ qx.Class.define("osparc.desktop.MainPage", {
256257 const studyUI = osparc . utils . Utils . deepCloneObject ( templateData [ "ui" ] ) ;
257258 studyUI [ "templateType" ] = templateType ;
258259 osparc . store . Study . patchStudyData ( templateData , "ui" , studyUI )
259- . then ( ( ) => console . log ( "patched" ) ) ;
260+ . then ( ( ) => {
261+ if ( templateBrowser ) {
262+ templateBrowser . reloadResources ( ) ;
263+ }
264+ if ( hypertoolBrowser ) {
265+ hypertoolBrowser . reloadResources ( ) ;
266+ }
267+ } ) ;
260268 }
261269 } ) ;
262270 } )
You can’t perform that action at this time.
0 commit comments