File tree 2 files changed +11
-7
lines changed
2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <ServiceBases v-bind =" props" >
2
+ <ServiceBase v-bind =" props" >
3
3
<template #description >
4
- Server responded in <span class =" border-b border-dashed" >{{ ping?.time || 0 }}ms</span >
4
+ <template v-if =" ping ?.time >= 0 " >
5
+ {{ $t('service.ping.description') }} <span class =" border-b border-dashed" >{{ ping.time }} {{ $t('service.ping.units') }}</span >
6
+ </template >
7
+ <template v-else >
8
+ {{ $t('service.ping.error') }}
9
+ </template >
5
10
</template >
6
- </ServiceBases >
11
+ </ServiceBase >
7
12
</template >
8
13
9
14
<script setup lang="ts">
10
15
import type { PingService } from ' ~/types/services'
11
- import ServiceBases from ' ~/components/service/Base.vue'
12
16
13
17
const props = defineProps <PingService >()
14
18
Original file line number Diff line number Diff line change 6
6
v-bind =" group"
7
7
/>
8
8
</template >
9
- <Message v-else title =" Services not found" >
9
+ <Message v-else : title =" $t('service. not- found.title') " >
10
10
<template #text >
11
11
<p >
12
- Oops! You did not specify a list of services in < span class = " border-b border-dashed " >config.yaml</ span >
12
+ {{ $t('service. not-found.description') }}
13
13
</p >
14
14
<p class =" mt-1" >
15
- <a href =" #" class =" text-sky-500 hover:text-sky-800" >Go to documentation </a >
15
+ <a href =" #" class =" text-sky-500 hover:text-sky-800" >{{ $t('service.not-found.action') }} </a >
16
16
</p >
17
17
</template >
18
18
</Message >
You can’t perform that action at this time.
0 commit comments