Skip to content

Commit 22c0734

Browse files
committed
trashedAt property
1 parent 5931c4d commit 22c0734

File tree

1 file changed

+11
-3
lines changed
  • services/static-webserver/client/source/class/osparc/data/model

1 file changed

+11
-3
lines changed

services/static-webserver/client/source/class/osparc/data/model/Study.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ qx.Class.define("osparc.data.model.Study", {
5858
state: studyData.state || this.getState(),
5959
quality: studyData.quality || this.getQuality(),
6060
permalink: studyData.permalink || this.getPermalink(),
61-
dev: studyData.dev || this.getDev()
61+
dev: studyData.dev || this.getDev(),
62+
trashedAt: studyData.trashedAt ? new Date(studyData.trashedAt) : this.getTrashedAt(),
6263
});
6364

6465
const wbData = studyData.workbench || this.getWorkbench();
@@ -209,7 +210,13 @@ qx.Class.define("osparc.data.model.Study", {
209210
nullable: true,
210211
event: "changeReadOnly",
211212
init: true
212-
}
213+
},
214+
215+
trashedAt: {
216+
check: "Date",
217+
nullable: true,
218+
init: null,
219+
},
213220
// ------ ignore for serializing ------
214221
},
215222

@@ -218,7 +225,8 @@ qx.Class.define("osparc.data.model.Study", {
218225
"permalink",
219226
"state",
220227
"pipelineRunning",
221-
"readOnly"
228+
"readOnly",
229+
"trashedAt",
222230
],
223231

224232
IgnoreModelizationProps: [

0 commit comments

Comments
 (0)