Merge pull request #2236 from mishankov/fix/stats-30-days

Simple fix for Uptime component
This commit is contained in:
Louis Lam 2022-12-28 15:37:46 +08:00 committed by GitHub
commit 9fe9e235ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<template>
<span :class="className" :title="24 + $t('-hour')">{{ uptime }}</span>
<span :class="className" :title="title">{{ uptime }}</span>
</template>
<script>
@ -75,6 +75,14 @@ export default {
return "";
},
title() {
if (this.type === "720") {
return `30${this.$t("-day")}`;
}
return `24${this.$t("-hour")}`;
}
},
};
</script>