mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-18 23:34:04 +02:00
Update src/components/HeartbeatBar.vue
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
parent
28ddaf1e27
commit
59043fb2b8
1 changed files with 4 additions and 4 deletions
|
@ -204,10 +204,10 @@ export default {
|
|||
*/
|
||||
timeSinceFirstBeat() {
|
||||
// For configured days mode, show the configured range
|
||||
if (this.normalizedHeartbeatBarDays > 0) {
|
||||
return this.normalizedHeartbeatBarDays < 2 ?
|
||||
(this.normalizedHeartbeatBarDays * 24) + "h" :
|
||||
this.normalizedHeartbeatBarDays + "d";
|
||||
if (this.normalizedHeartbeatBarDays >= 2) {
|
||||
return this.normalizedHeartbeatBarDays + "d";
|
||||
if (this.normalizedHeartbeatBarDays == 1) {
|
||||
return this.normalizedHeartbeatBarDays * 24) + "h";
|
||||
}
|
||||
|
||||
// For auto mode, calculate from actual data
|
||||
|
|
Loading…
Add table
Reference in a new issue