Skip to content

Commit

Permalink
fix: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
filipgutica committed Jun 18, 2024
1 parent 30623b4 commit bd59777
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<KPop
hide-close-icon
placement="bottom"
trigger="hover"
width="300"
Expand All @@ -24,19 +25,16 @@
</template>
<template #footer>
<div class="footer-container">
<EntityLink
allow-copy
:entity-link-data="{
id: entityConfig.id,
label: 'View',
deleted: entityDeleted
}"
:external-link="externalLink"
<KExternalLink
:href="externalLink"
new-window
/>
>
View
</KExternalLink>
<KExternalLink
v-if="exploreLink"
:href="exploreLink"
new-window
>
Explore
</KExternalLink>
Expand All @@ -47,10 +45,8 @@

<script setup lang="ts">
import type { PropType } from 'vue'
import { ref } from 'vue'
import ConfigCardItem from '../entity-base-config-card/ConfigCardItem.vue'
import useSWRV from 'swrv'
import EntityLink from '../entity-link/EntityLink.vue'
import { ConnectionsIcon } from '@kong/icons'
import { KUI_ICON_SIZE_30 } from '@kong/design-tokens'
import type { EntityTooltipConfig, TooltipData } from '../../types'
Expand All @@ -71,8 +67,6 @@ const props = defineProps({
},
})
const entityDeleted = ref(false)
const { data: tooltipData } = useSWRV<TooltipData>(
() => `entity-tooltip-${props.entityConfig.id}`,
async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export interface TooltipData {
}

export interface EntityTooltipConfig {
title: string
deleted: boolean
id: string,
data: () => Promise<TooltipData>
Expand Down

0 comments on commit bd59777

Please sign in to comment.