mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
Update NextPingTimer.vue
This commit is contained in:
parent
a4ab9caa43
commit
f65e5e5848
1 changed files with 5 additions and 3 deletions
|
@ -28,13 +28,13 @@ export default {
|
|||
formattedTime = seconds > 1 ? `${seconds}secs` : `${seconds}sec`;
|
||||
}
|
||||
if (minutes > 0) {
|
||||
formattedTime = minutes > 1 ? `${minutes}mins` : `${minutes}min`;
|
||||
formattedTime = minutes > 1 ? `~ ${minutes}mins` : `~ ${minutes}min`;
|
||||
}
|
||||
if (hours > 0) {
|
||||
formattedTime = hours > 1 ? `${hours}hrs` : `${hours}hr`;
|
||||
formattedTime = hours > 1 ? `~ ${hours}hrs` : `~ ${hours}hr`;
|
||||
}
|
||||
if (days > 0) {
|
||||
formattedTime = days > 1 ? `${days}days` : `${days}day`;
|
||||
formattedTime = days > 1 ? `~ ${days}days` : `~ ${days}day`;
|
||||
}
|
||||
|
||||
return formattedTime.trim();
|
||||
|
@ -45,8 +45,10 @@ export default {
|
|||
|
||||
<style lang="scss" scoped>
|
||||
@import "../assets/vars.scss";
|
||||
|
||||
.word {
|
||||
color: $secondary-text;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
Loading…
Reference in a new issue