| 
									
										
										
										
											2018-09-27 21:17:35 +08:00
										 |  |  | export class StackdriverAnnotationsQueryCtrl { | 
					
						
							|  |  |  |   static templateUrl = 'partials/annotations.editor.html'; | 
					
						
							|  |  |  |   annotation: any; | 
					
						
							| 
									
										
										
										
											2019-01-08 20:52:19 +08:00
										 |  |  |   templateSrv: any; | 
					
						
							| 
									
										
										
										
											2018-09-27 21:17:35 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-08 20:52:19 +08:00
										 |  |  |   /** @ngInject */ | 
					
						
							|  |  |  |   constructor(templateSrv) { | 
					
						
							|  |  |  |     this.templateSrv = templateSrv; | 
					
						
							| 
									
										
										
										
											2018-09-27 21:17:35 +08:00
										 |  |  |     this.annotation.target = this.annotation.target || {}; | 
					
						
							| 
									
										
										
										
											2019-01-08 20:37:08 +08:00
										 |  |  |     this.onQueryChange = this.onQueryChange.bind(this); | 
					
						
							| 
									
										
										
										
											2018-12-29 02:45:24 +08:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-08 20:37:08 +08:00
										 |  |  |   onQueryChange(target) { | 
					
						
							| 
									
										
										
										
											2018-12-29 02:45:24 +08:00
										 |  |  |     Object.assign(this.annotation.target, target); | 
					
						
							| 
									
										
										
										
											2018-09-27 21:17:35 +08:00
										 |  |  |   } | 
					
						
							|  |  |  | } |