mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-04 03:27:12 -05:00 
			
		
		
		
	Update share-links-dropdown.component.ts
This commit is contained in:
		
							parent
							
								
									55e799b833
								
							
						
					
					
						commit
						03523244ef
					
				@ -84,7 +84,7 @@ export class ShareLinksDropdownComponent implements OnInit {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  getDaysRemaining(link: PaperlessShareLink): string {
 | 
					  getDaysRemaining(link: PaperlessShareLink): string {
 | 
				
			||||||
    const days: number = Math.ceil(
 | 
					    const days: number = Math.round(
 | 
				
			||||||
      (Date.parse(link.expiration) - Date.now()) / (1000 * 60 * 60 * 24)
 | 
					      (Date.parse(link.expiration) - Date.now()) / (1000 * 60 * 60 * 24)
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
    return days === 1 ? $localize`1 day` : $localize`${days} days`
 | 
					    return days === 1 ? $localize`1 day` : $localize`${days} days`
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user