@@ -365,6 +365,8 @@ class EdgeEditor extends UNISYS.Component {
365365 isEditable : true
366366 } ) ;
367367
368+ this . AppCall ( 'EDGEEDIT_LOCK' , { edgeID : this . props . edgeID } ) ;
369+
368370 } else {
369371
370372 // LOAD EXISTING EDGE
@@ -508,6 +510,7 @@ class EdgeEditor extends UNISYS.Component {
508510 isEditable : true
509511 } ) ;
510512 }
513+ this . AppCall ( 'EDGEEDIT_LOCK' , { edgeID : this . props . edgeID } ) ;
511514
512515 } // handleEdgeEdit
513516/// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -537,8 +540,10 @@ class EdgeEditor extends UNISYS.Component {
537540 if ( this . state . isEditable ) {
538541 this . loadSourceAndTarget ( ) ;
539542 this . setState ( { isEditable : false , targetIsEditable : false } ) ;
543+ this . AppCall ( 'EDGEEDIT_UNLOCK' , { edgeID : this . props . edgeID } ) ;
540544 this . AppCall ( 'AUTOCOMPLETE_SELECT' , { id :'search' } ) ;
541545 }
546+
542547 } else {
543548 // expand, but don't set the autocomplete field, since we're not editing
544549 this . setState ( { isExpanded : true } ) ;
@@ -548,12 +553,14 @@ class EdgeEditor extends UNISYS.Component {
548553/*/
549554/*/ onDeleteButtonClick ( ) {
550555 this . clearForm ( ) ;
556+ this . AppCall ( 'EDGEEDIT_UNLOCK' , { edgeID : this . props . edgeID } ) ;
551557 this . AppCall ( 'DB_UPDATE' , { edgeID :this . props . edgeID } ) ;
552558 }
553559/// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
554560/*/
555561/*/ onEditButtonClick ( ) {
556562 this . setState ( { isEditable : true } ) ;
563+ this . AppCall ( 'EDGEEDIT_LOCK' , { edgeID : this . props . edgeID } ) ;
557564
558565 // Don't allow editing of the source or target fields.
559566 // If you want to change the edge, delete this one and create a new one.
@@ -662,6 +669,7 @@ class EdgeEditor extends UNISYS.Component {
662669 }
663670 if ( DBG ) console . group ( 'EdgeEntry.onSubmit submitting' , edge )
664671
672+ this . AppCall ( 'EDGEEDIT_UNLOCK' , { edgeID : this . props . edgeID } ) ;
665673 // pass currentAutoComplete back to nodeselector
666674 this . AppCall ( 'AUTOCOMPLETE_SELECT' , { id :'search' } ) ;
667675 this . setState ( { isEditable : false , sourceIsEditable : false , targetIsEditable : false } ) ;
0 commit comments