File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
services/static-webserver/client/source/class/osparc/data/model Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ qx.Class.define("osparc.data.model.Study", {
6161 dev : studyData . dev || this . getDev ( ) ,
6262 trashedAt : studyData . trashedAt ? new Date ( studyData . trashedAt ) : this . getTrashedAt ( ) ,
6363 trashedBy : studyData . trashedBy || null ,
64+ type : studyData . type ,
65+ templateType : studyData . templateType ,
6466 } ) ;
6567
6668 const wbData = studyData . workbench || this . getWorkbench ( ) ;
@@ -191,6 +193,28 @@ qx.Class.define("osparc.data.model.Study", {
191193 init : { }
192194 } ,
193195
196+ type : {
197+ check : [
198+ "STANDARD" ,
199+ "TEMPLATE" ,
200+ ] ,
201+ init : null ,
202+ nullable : false ,
203+ event : "changeType"
204+ } ,
205+
206+ templateType : {
207+ check : [
208+ null ,
209+ "TEMPLATE" ,
210+ "TUTORIAL" ,
211+ "HYPERTOOL" ,
212+ ] ,
213+ init : null ,
214+ nullable : true ,
215+ event : "changeTemplateType"
216+ } ,
217+
194218 // ------ ignore for serializing ------
195219 state : {
196220 check : "Object" ,
You can’t perform that action at this time.
0 commit comments