Add preview image: broadcast tx
This commit is contained in:
		
							parent
							
								
									a0e387efad
								
							
						
					
					
						commit
						a5b16cf129
					
				| @ -3,6 +3,7 @@ import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms | |||||||
| import { ApiService } from '../../services/api.service'; | import { ApiService } from '../../services/api.service'; | ||||||
| import { StateService } from '../../services/state.service'; | import { StateService } from '../../services/state.service'; | ||||||
| import { SeoService } from '../../services/seo.service'; | import { SeoService } from '../../services/seo.service'; | ||||||
|  | import { OpenGraphService } from '../../services/opengraph.service'; | ||||||
| import { seoDescriptionNetwork } from '../../shared/common.utils'; | import { seoDescriptionNetwork } from '../../shared/common.utils'; | ||||||
| 
 | 
 | ||||||
| @Component({ | @Component({ | ||||||
| @ -21,6 +22,7 @@ export class PushTransactionComponent implements OnInit { | |||||||
|     private apiService: ApiService, |     private apiService: ApiService, | ||||||
|     public stateService: StateService, |     public stateService: StateService, | ||||||
|     private seoService: SeoService, |     private seoService: SeoService, | ||||||
|  |     private ogService: OpenGraphService, | ||||||
|   ) { } |   ) { } | ||||||
| 
 | 
 | ||||||
|   ngOnInit(): void { |   ngOnInit(): void { | ||||||
| @ -30,6 +32,7 @@ export class PushTransactionComponent implements OnInit { | |||||||
| 
 | 
 | ||||||
|     this.seoService.setTitle($localize`:@@meta.title.push-tx:Broadcast Transaction`); |     this.seoService.setTitle($localize`:@@meta.title.push-tx:Broadcast Transaction`); | ||||||
|     this.seoService.setDescription($localize`:@@meta.description.push-tx:Broadcast a transaction to the ${this.stateService.network==='liquid'||this.stateService.network==='liquidtestnet'?'Liquid':'Bitcoin'}${seoDescriptionNetwork(this.stateService.network)} network using the transaction's hash.`); |     this.seoService.setDescription($localize`:@@meta.description.push-tx:Broadcast a transaction to the ${this.stateService.network==='liquid'||this.stateService.network==='liquidtestnet'?'Liquid':'Bitcoin'}${seoDescriptionNetwork(this.stateService.network)} network using the transaction's hash.`); | ||||||
|  |     this.ogService.setManualOgImage('broadcast-tx.jpg'); | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   postTx() { |   postTx() { | ||||||
|  | |||||||
							
								
								
									
										
											BIN
										
									
								
								frontend/src/resources/previews/broadcast-tx.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								frontend/src/resources/previews/broadcast-tx.jpg
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 43 KiB | 
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user