File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
services/static-webserver/client/source/class/osparc/desktop Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -815,6 +815,14 @@ qx.Class.define("osparc.desktop.StudyEditor", {
815815 return studyDiffs ;
816816 } ,
817817
818+ // this takes around 0.5ms
819+ didStudyChange : function ( ) {
820+ const studyDiffs = this . __getStudyDiffs ( ) ;
821+ const changed = Boolean ( Object . keys ( studyDiffs . delta ) . length ) ;
822+ this . getStudy ( ) . setSavePending ( changed ) ;
823+ return changed ;
824+ } ,
825+
818826 __checkStudyChanges : function ( ) {
819827 if ( this . didStudyChange ( ) ) {
820828 if ( this . __updatingStudy > 0 ) {
@@ -826,14 +834,6 @@ qx.Class.define("osparc.desktop.StudyEditor", {
826834 }
827835 } ,
828836
829- // this takes around 0.5ms
830- didStudyChange : function ( ) {
831- const studyDiffs = this . __getStudyDiffs ( ) ;
832- const changed = Boolean ( Object . keys ( studyDiffs . delta ) . length ) ;
833- this . getStudy ( ) . setSavePending ( changed ) ;
834- return changed ;
835- } ,
836-
837837 updateStudyDocument : function ( data = null ) {
838838 if ( ! osparc . data . model . Study . canIWrite ( this . getStudy ( ) . getAccessRights ( ) ) ) {
839839 return new Promise ( resolve => {
You can’t perform that action at this time.
0 commit comments