1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-24 19:13:31 +03:00
This commit is contained in:
Eugene Pankov 2021-10-18 13:53:27 +02:00
parent d82a88bcc6
commit e3375741af
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -34,17 +34,12 @@ export class UnlockVaultModalComponent {
this.modalInstance.close(null)
}
getRememberForDisplay (rememberOption): string {
if (rememberOption >= 1440)
{
return `${Math.round((rememberOption/1440)*10)/10} day`
}
else if (rememberOption >= 60)
{
return `${Math.round((rememberOption/60)*10)/10} hour`
}
else
{
getRememberForDisplay (rememberOption: number): string {
if (rememberOption >= 1440) {
return `${Math.round(rememberOption/1440*10)/10} day`
} else if (rememberOption >= 60) {
return `${Math.round(rememberOption/60*10)/10} hour`
} else {
return `${rememberOption} min`
}
}