mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 07:14:04 +00:00
compute title value
This commit is contained in:
parent
a17084f75d
commit
c7871427c3
1 changed files with 9 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<span :class="className" :title="24 + $t('-hour')">{{ uptime }}</span>
|
<span :class="className" :title="title">{{ uptime }}</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -75,6 +75,14 @@ export default {
|
||||||
|
|
||||||
return "";
|
return "";
|
||||||
},
|
},
|
||||||
|
|
||||||
|
title() {
|
||||||
|
if (this.type === "720") {
|
||||||
|
return `30 ${this.$t("-day")}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
return `24 ${this.$t("-hour")}`;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue