match higher precision time in block page details
This commit is contained in:
		
							parent
							
								
									850752e0ea
								
							
						
					
					
						commit
						cc695dc910
					
				| @ -41,7 +41,7 @@ | ||||
|               <tr> | ||||
|                 <td i18n="block.timestamp">Timestamp</td> | ||||
|                 <td> | ||||
|                   <app-timestamp [unixTime]="block.timestamp"></app-timestamp> | ||||
|                   <app-timestamp [unixTime]="block.timestamp" [precision]="1" minUnit="minute"></app-timestamp> | ||||
|                 </td> | ||||
|               </tr> | ||||
|               <tr> | ||||
|  | ||||
| @ -2,6 +2,6 @@ | ||||
| <span *ngIf="seconds !== undefined"> | ||||
|   ‎{{ seconds * 1000 | date: customFormat ?? 'yyyy-MM-dd HH:mm' }} | ||||
|   <div class="lg-inline" *ngIf="!hideTimeSince"> | ||||
|     <i class="symbol">(<app-time kind="since" [time]="seconds" [fastRender]="true"></app-time>)</i> | ||||
|     <i class="symbol">(<app-time kind="since" [time]="seconds" [fastRender]="true" [precision]="precision" [minUnit]="minUnit"></app-time>)</i> | ||||
|   </div> | ||||
| </span> | ||||
|  | ||||
| @ -11,6 +11,8 @@ export class TimestampComponent implements OnChanges { | ||||
|   @Input() dateString: string; | ||||
|   @Input() customFormat: string; | ||||
|   @Input() hideTimeSince: boolean = false; | ||||
|   @Input() precision: number = 0; | ||||
|   @Input() minUnit: 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute' | 'second' = 'second'; | ||||
| 
 | ||||
|   seconds: number | undefined = undefined; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user