mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-21 23:43:27 +01:00
ui: Make it more obvious that the response time can be toggled between avg and min-max
This commit is contained in:
parent
92b85ee1ab
commit
01d2ed3f02
@ -8,7 +8,7 @@
|
|||||||
<span v-if="data.results && data.results.length && data.results[data.results.length - 1].hostname" class='text-gray-500 font-light'> | {{ data.results[data.results.length - 1].hostname }}</span>
|
<span v-if="data.results && data.results.length && data.results[data.results.length - 1].hostname" class='text-gray-500 font-light'> | {{ data.results[data.results.length - 1].hostname }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='w-1/4 text-right'>
|
<div class='w-1/4 text-right'>
|
||||||
<span class='font-light overflow-x-hidden cursor-pointer select-none' v-if="data.results && data.results.length" @click="toggleShowAverageResponseTime" :title="showAverageResponseTime ? 'Average response time' : 'Minimum and maximum response time'">
|
<span class='font-light overflow-x-hidden cursor-pointer select-none hover:text-gray-500' v-if="data.results && data.results.length" @click="toggleShowAverageResponseTime" :title="showAverageResponseTime ? 'Average response time' : 'Minimum and maximum response time'">
|
||||||
<slot v-if="showAverageResponseTime">
|
<slot v-if="showAverageResponseTime">
|
||||||
~{{ averageResponseTime }}ms
|
~{{ averageResponseTime }}ms
|
||||||
</slot>
|
</slot>
|
||||||
|
Loading…
Reference in New Issue
Block a user