Merge pull request #54 from ikaven1024/feat-ttl
perf: display human-readable ttl
This commit is contained in:
commit
c0bf201697
|
@ -107,7 +107,9 @@ const onDeleteKey = () => {
|
|||
<template v-if="ttl < 0">
|
||||
{{ $t('interface.forever') }}
|
||||
</template>
|
||||
<template v-else>{{ ttl }} {{ $t('common.second') }}</template>
|
||||
<template v-else>
|
||||
{{ Math.floor(ttl/3600) }}:{{ Math.floor((ttl%3600)/60) }}:{{ Math.floor(ttl%60) }}
|
||||
</template>
|
||||
</n-button>
|
||||
</template>
|
||||
TTL
|
||||
|
|
Loading…
Reference in New Issue