Skip to content

Commit b8b545b

Browse files
committed
bad merge II
1 parent f793097 commit b8b545b

File tree

1 file changed

+0
-67
lines changed
  • services/static-webserver/client/source/class/osparc/store

1 file changed

+0
-67
lines changed

services/static-webserver/client/source/class/osparc/store/Store.js

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -429,73 +429,6 @@ qx.Class.define("osparc.store.Store", {
429429
return null;
430430
},
431431

432-
getStudyState: function(studyId) {
433-
osparc.data.Resources.fetch("studies", "state", {
434-
url: {
435-
"studyId": studyId
436-
}
437-
})
438-
.then(({state}) => {
439-
this.setStudyState(studyId, state);
440-
});
441-
},
442-
443-
setStudyState: function(studyId, state) {
444-
const studiesWStateCache = this.getStudies();
445-
const idx = studiesWStateCache.findIndex(studyWStateCache => studyWStateCache["uuid"] === studyId);
446-
if (idx !== -1) {
447-
studiesWStateCache[idx]["state"] = state;
448-
}
449-
450-
const currentStudy = this.getCurrentStudy();
451-
if (currentStudy && currentStudy.getUuid() === studyId) {
452-
currentStudy.setState(state);
453-
}
454-
455-
this.fireDataEvent("studyStateChanged", {
456-
studyId,
457-
state,
458-
});
459-
},
460-
461-
setStudyDebt: function(studyId, debt) {
462-
// init object if it does not exist
463-
if (this.__studiesInDebt === null) {
464-
this.__studiesInDebt = {};
465-
}
466-
if (debt) {
467-
this.__studiesInDebt[studyId] = debt;
468-
} else {
469-
delete this.__studiesInDebt[studyId];
470-
}
471-
472-
const studiesWStateCache = this.getStudies();
473-
const idx = studiesWStateCache.findIndex(studyWStateCache => studyWStateCache["uuid"] === studyId);
474-
if (idx !== -1) {
475-
if (debt) {
476-
studiesWStateCache[idx]["debt"] = debt;
477-
} else {
478-
delete studiesWStateCache[idx]["debt"];
479-
}
480-
}
481-
482-
this.fireDataEvent("studyDebtChanged", {
483-
studyId,
484-
debt,
485-
});
486-
},
487-
488-
getStudyDebt: function(studyId) {
489-
if (this.__studiesInDebt && studyId in this.__studiesInDebt) {
490-
return this.__studiesInDebt[studyId];
491-
}
492-
return null;
493-
},
494-
495-
isStudyInDebt: function(studyId) {
496-
return Boolean(this.getStudyDebt(studyId));
497-
},
498-
499432
reloadCreditPrice: function() {
500433
const store = osparc.store.Store.getInstance();
501434
store.setCreditPrice(null);

0 commit comments

Comments
 (0)