mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-15 06:30:13 +08:00
lint
This commit is contained in:
parent
d82a88bcc6
commit
e3375741af
@ -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`
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user