mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-19 07:44:02 +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() {
|
timeSinceFirstBeat() {
|
||||||
// For configured days mode, show the configured range
|
// For configured days mode, show the configured range
|
||||||
if (this.normalizedHeartbeatBarDays > 0) {
|
if (this.normalizedHeartbeatBarDays >= 2) {
|
||||||
return this.normalizedHeartbeatBarDays < 2 ?
|
return this.normalizedHeartbeatBarDays + "d";
|
||||||
(this.normalizedHeartbeatBarDays * 24) + "h" :
|
if (this.normalizedHeartbeatBarDays == 1) {
|
||||||
this.normalizedHeartbeatBarDays + "d";
|
return this.normalizedHeartbeatBarDays * 24) + "h";
|
||||||
}
|
}
|
||||||
|
|
||||||
// For auto mode, calculate from actual data
|
// For auto mode, calculate from actual data
|
||||||
|
|
Loading…
Add table
Reference in a new issue