20
20
</template >
21
21
<div
22
22
v-if =" recordKey"
23
- class =" inline-flex justify-start gap-10px "
23
+ class =" gap-10px inline-flex justify-start"
24
24
>
25
25
<CodeBox
26
26
:code =" recordKey"
45
45
46
46
<script lang="ts" setup>
47
47
import { computed , ref } from ' vue'
48
- import { useI18n } from ' @cy/i18n'
49
- import type { RecordKeyFragment } from ' ../../generated/graphql'
50
- import SettingsSection from ' ../SettingsSection.vue'
48
+ import { gql } from ' @urql/core'
51
49
import Button from ' @cy/components/Button.vue'
50
+ import CopyButton from ' @cy/components/CopyButton.vue'
51
+ import ExternalLink from ' @cy/gql-components/ExternalLink.vue'
52
+ import { useExternalLink } from ' @cy/gql-components/useExternalLink'
52
53
import IconKey from ' ~icons/cy/placeholder_x16.svg'
53
54
import IconExport from ' ~icons/cy/export_x16.svg'
54
- import { gql } from ' @urql/core '
55
- import CopyButton from ' @cy/components/CopyButton .vue'
55
+ import type { RecordKeyFragment } from ' ../../generated/graphql '
56
+ import SettingsSection from ' ../SettingsSection .vue'
56
57
import CodeBox from ' ./CodeBox.vue'
57
- import ExternalLink from ' @packages/frontend-shared/src/gql-components/ExternalLink.vue'
58
+ import { useI18n } from ' @cy/i18n'
59
+
60
+ const { t } = useI18n ()
58
61
59
62
gql `
60
63
fragment RecordKey on CloudRecordKey {
@@ -65,11 +68,10 @@ fragment RecordKey on CloudRecordKey {
65
68
66
69
const props = defineProps <{
67
70
gql: RecordKeyFragment
71
+ manageKeysUrl: string
68
72
}>()
69
73
70
- const openManageKeys = () => { }
71
- const showRecordKey = ref (false )
72
- const { t } = useI18n ()
74
+ const openManageKeys = useExternalLink (props .manageKeysUrl )
73
75
74
76
const recordKey = computed (() => props .gql .key )
75
77
</script >
0 commit comments