client/notes: add exit prompt for polygon changes
This commit is contained in:
		
							parent
							
								
									3235d70b1b
								
							
						
					
					
						commit
						8e9ddf796f
					
				| @ -131,6 +131,10 @@ class PostEditSidebarControl extends events.EventTarget { | |||||||
|                         this.dispatchEvent(new CustomEvent('change')); |                         this.dispatchEvent(new CustomEvent('change')); | ||||||
|                     }); |                     }); | ||||||
|             } |             } | ||||||
|  |             this._postNotesOverlayControl.addEventListener( | ||||||
|  |                 'change', e => { | ||||||
|  |                     this.dispatchEvent(new CustomEvent('change')); | ||||||
|  |                 }); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         if (this._noteTextareaNode) { |         if (this._noteTextareaNode) { | ||||||
|  | |||||||
| @ -723,12 +723,15 @@ class PostNotesOverlayControl extends events.EventTarget { | |||||||
| 
 | 
 | ||||||
|         note.polygon.addEventListener('change', e => { |         note.polygon.addEventListener('change', e => { | ||||||
|             this._updateEdgeNode(e.detail.point, note); |             this._updateEdgeNode(e.detail.point, note); | ||||||
|  |             this.dispatchEvent(new CustomEvent('change')); | ||||||
|         }); |         }); | ||||||
|         note.polygon.addEventListener('remove', e => { |         note.polygon.addEventListener('remove', e => { | ||||||
|             this._deleteEdgeNode(e.detail.point, note); |             this._deleteEdgeNode(e.detail.point, note); | ||||||
|  |             this.dispatchEvent(new CustomEvent('change')); | ||||||
|         }); |         }); | ||||||
|         note.polygon.addEventListener('add', e => { |         note.polygon.addEventListener('add', e => { | ||||||
|             this._createEdgeNode(e.detail.point, groupNode); |             this._createEdgeNode(e.detail.point, groupNode); | ||||||
|  |             this.dispatchEvent(new CustomEvent('change')); | ||||||
|         }); |         }); | ||||||
| 
 | 
 | ||||||
|         this._svgNode.appendChild(groupNode); |         this._svgNode.appendChild(groupNode); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 rr-
						rr-