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 { Transaction } from '../../interfaces/electrs.interface'; | ||||
| 
 | ||||
| @ -13,15 +13,8 @@ export class AccelerationTimelineComponent implements OnInit, OnChanges { | ||||
|   @Input() eta: ETA; | ||||
| 
 | ||||
|   acceleratedAt: number; | ||||
|   dir: 'rtl' | 'ltr' = 'ltr'; | ||||
| 
 | ||||
|   constructor( | ||||
|     @Inject(LOCALE_ID) private locale: string, | ||||
|   ) { | ||||
|     if (this.locale.startsWith('ar') || this.locale.startsWith('fa') || this.locale.startsWith('he')) { | ||||
|       this.dir = 'rtl'; | ||||
|     } | ||||
|   } | ||||
|   constructor() {} | ||||
| 
 | ||||
|   ngOnInit(): void { | ||||
|     this.acceleratedAt = this.tx.acceleratedAt ?? new Date().getTime() / 1000; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user