remove rtl for now
This commit is contained in:
		
							parent
							
								
									fb8bd4b194
								
							
						
					
					
						commit
						7c08a104ce
					
				| @ -1,4 +1,4 @@ | |||||||
| import { Component, Input, OnInit, OnChanges, Inject, LOCALE_ID } from '@angular/core'; | import { Component, Input, OnInit, OnChanges } from '@angular/core'; | ||||||
| import { ETA } from '../../services/eta.service'; | import { ETA } from '../../services/eta.service'; | ||||||
| import { Transaction } from '../../interfaces/electrs.interface'; | import { Transaction } from '../../interfaces/electrs.interface'; | ||||||
| 
 | 
 | ||||||
| @ -13,15 +13,8 @@ export class AccelerationTimelineComponent implements OnInit, OnChanges { | |||||||
|   @Input() eta: ETA; |   @Input() eta: ETA; | ||||||
| 
 | 
 | ||||||
|   acceleratedAt: number; |   acceleratedAt: number; | ||||||
|   dir: 'rtl' | 'ltr' = 'ltr'; |  | ||||||
| 
 | 
 | ||||||
|   constructor( |   constructor() {} | ||||||
|     @Inject(LOCALE_ID) private locale: string, |  | ||||||
|   ) { |  | ||||||
|     if (this.locale.startsWith('ar') || this.locale.startsWith('fa') || this.locale.startsWith('he')) { |  | ||||||
|       this.dir = 'rtl'; |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| 
 | 
 | ||||||
|   ngOnInit(): void { |   ngOnInit(): void { | ||||||
|     this.acceleratedAt = this.tx.acceleratedAt ?? new Date().getTime() / 1000; |     this.acceleratedAt = this.tx.acceleratedAt ?? new Date().getTime() / 1000; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user