|
1 | 1 | <!-- |
2 | | - - Copyright 2014-2018 the original author or authors. |
| 2 | + - Copyright 2014-2024 the original author or authors. |
3 | 3 | - |
4 | 4 | - Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | - you may not use this file except in compliance with the License. |
|
30 | 30 | /> |
31 | 31 | </div> |
32 | 32 | <div class="flex-auto xl:flex-1 xl:w-1/4 truncate"> |
33 | | - <a |
34 | | - :href=" |
35 | | - instance.registration.serviceUrl || instance.registration.healthUrl |
36 | | - " |
37 | | - @click.stop |
38 | | - v-text=" |
39 | | - instance.registration.serviceUrl || instance.registration.healthUrl |
40 | | - " |
41 | | - /> |
42 | | - <sba-tag |
43 | | - v-if="instance.registration.metadata?.['group']" |
44 | | - class="ml-2" |
45 | | - :value="instance.registration.metadata?.['group']" |
46 | | - small |
47 | | - /> |
48 | | - <br /> |
49 | | - <span class="text-sm italic" v-text="instance.id" /> |
| 33 | + <template v-if="instance.showUrl()"> |
| 34 | + <a |
| 35 | + :href=" |
| 36 | + instance.registration.serviceUrl || |
| 37 | + instance.registration.healthUrl |
| 38 | + " |
| 39 | + @click.stop |
| 40 | + v-text=" |
| 41 | + instance.registration.serviceUrl || |
| 42 | + instance.registration.healthUrl |
| 43 | + " |
| 44 | + /> |
| 45 | + <sba-tag |
| 46 | + v-if="instance.registration.metadata?.['group']" |
| 47 | + class="ml-2" |
| 48 | + :value="instance.registration.metadata?.['group']" |
| 49 | + small |
| 50 | + /> |
| 51 | + <br /> |
| 52 | + <span class="text-sm italic" v-text="instance.id" /> |
| 53 | + </template> |
| 54 | + <template v-else> |
| 55 | + <span v-text="instance.id"></span> |
| 56 | + <sba-tag |
| 57 | + v-if="instance.registration.metadata?.['group']" |
| 58 | + class="ml-2" |
| 59 | + :value="instance.registration.metadata?.['group']" |
| 60 | + small |
| 61 | + /> |
| 62 | + </template> |
50 | 63 | </div> |
51 | 64 | <div |
| 65 | + v-if="Array.isArray(instance.tags)" |
52 | 66 | class="hidden xl:block w-1/4" |
53 | 67 | :class="{ |
54 | 68 | 'overflow-x-scroll': Object.keys(instance.tags ?? {}).length > 0, |
|
71 | 85 | import { PropType } from 'vue'; |
72 | 86 | import { useRouter } from 'vue-router'; |
73 | 87 |
|
| 88 | +import SbaStatus from '@/components/sba-status.vue'; |
| 89 | +import SbaTag from '@/components/sba-tag.vue'; |
| 90 | +import SbaTags from '@/components/sba-tags.vue'; |
| 91 | +
|
74 | 92 | import Instance from '@/services/instance'; |
75 | 93 |
|
76 | 94 | const router = useRouter(); |
|
0 commit comments