File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -383,21 +383,19 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
383383 const page = this . __billingSettings = new osparc . dashboard . resources . pages . BasePage ( title , iconSrc , id ) ;
384384 this . __addOpenButton ( page ) ;
385385
386- if ( this . __resourceData [ "resourceType" ] === "study" ) {
387- const studyData = this . __resourceData ;
388- const canBeOpened = osparc . study . Utils . canShowBillingOptions ( studyData ) ;
386+ if ( resourceData [ "resourceType" ] === "study" ) {
387+ const canBeOpened = osparc . study . Utils . canShowBillingOptions ( resourceData ) ;
389388 page . setEnabled ( canBeOpened ) ;
390389 }
391390
392391 const lazyLoadContent = ( ) => {
393- const studyData = this . __resourceData ;
394392 const billingSettings = new osparc . study . BillingSettings ( resourceData ) ;
395393 billingSettings . addListener ( "debtPayed" , ( ) => {
396- if ( this . __resourceData [ "resourceType" ] === "study" ) {
394+ if ( resourceData [ "resourceType" ] === "study" ) {
397395 page . payDebtButton . set ( {
398- visibility : osparc . study . Utils . isInDebt ( studyData ) ? "visible" : "excluded"
396+ visibility : osparc . study . Utils . isInDebt ( resourceData ) ? "visible" : "excluded"
399397 } ) ;
400- const canBeOpened = osparc . study . Utils . canBeOpened ( studyData ) ;
398+ const canBeOpened = osparc . study . Utils . canBeOpened ( resourceData ) ;
401399 page . openButton . setEnabled ( canBeOpened ) ;
402400 }
403401 } )
You can’t perform that action at this time.
0 commit comments