mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-24 19:13:31 +03:00
lint
This commit is contained in:
parent
d82a88bcc6
commit
e3375741af
@ -34,17 +34,12 @@ export class UnlockVaultModalComponent {
|
|||||||
this.modalInstance.close(null)
|
this.modalInstance.close(null)
|
||||||
}
|
}
|
||||||
|
|
||||||
getRememberForDisplay (rememberOption): string {
|
getRememberForDisplay (rememberOption: number): string {
|
||||||
if (rememberOption >= 1440)
|
if (rememberOption >= 1440) {
|
||||||
{
|
return `${Math.round(rememberOption/1440*10)/10} day`
|
||||||
return `${Math.round((rememberOption/1440)*10)/10} day`
|
} else if (rememberOption >= 60) {
|
||||||
}
|
return `${Math.round(rememberOption/60*10)/10} hour`
|
||||||
else if (rememberOption >= 60)
|
} else {
|
||||||
{
|
|
||||||
return `${Math.round((rememberOption/60)*10)/10} hour`
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return `${rememberOption} min`
|
return `${rememberOption} min`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user