mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +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`;
|
formattedTime = seconds > 1 ? `${seconds}secs` : `${seconds}sec`;
|
||||||
}
|
}
|
||||||
if (minutes > 0) {
|
if (minutes > 0) {
|
||||||
formattedTime = minutes > 1 ? `${minutes}mins` : `${minutes}min`;
|
formattedTime = minutes > 1 ? `~ ${minutes}mins` : `~ ${minutes}min`;
|
||||||
}
|
}
|
||||||
if (hours > 0) {
|
if (hours > 0) {
|
||||||
formattedTime = hours > 1 ? `${hours}hrs` : `${hours}hr`;
|
formattedTime = hours > 1 ? `~ ${hours}hrs` : `~ ${hours}hr`;
|
||||||
}
|
}
|
||||||
if (days > 0) {
|
if (days > 0) {
|
||||||
formattedTime = days > 1 ? `${days}days` : `${days}day`;
|
formattedTime = days > 1 ? `~ ${days}days` : `~ ${days}day`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return formattedTime.trim();
|
return formattedTime.trim();
|
||||||
|
@ -45,8 +45,10 @@ export default {
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "../assets/vars.scss";
|
@import "../assets/vars.scss";
|
||||||
|
|
||||||
.word {
|
.word {
|
||||||
color: $secondary-text;
|
color: $secondary-text;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue