We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b8f694 commit 7cea55fCopy full SHA for 7cea55f
services/static-webserver/client/source/class/osparc/store/Store.js
@@ -488,6 +488,10 @@ qx.Class.define("osparc.store.Store", {
488
return null;
489
},
490
491
+ isStudyInDebt: function(studyId) {
492
+ return Boolean(this.getStudyDebt(studyId));
493
+ },
494
+
495
trashStudy: function(studyId) {
496
const params = {
497
url: {
services/static-webserver/client/source/class/osparc/study/Utils.js
@@ -344,7 +344,7 @@ qx.Class.define("osparc.study.Utils", {
344
345
346
isInDebt: function(studyData) {
347
- return Boolean("debt" in studyData && studyData["debt"] < 0);
+ return osparc.store.Store.getInstance().isStudyInDebt(studyData["uuid"]);
348
349
350
getUiMode: function(studyData) {
0 commit comments