11<template xmlns:v-slot =" http :// www.w3.org/1999/XSL/Transform">
22 < div v - if = " integration != null">
3- <IntegrationExtractorCrumb :integration =" integration" />
3+ <IntegrationExtractorCrumb :integration =" integration" />
44
55 <div class =" px-4 pt-3 pb-2" >
66 <v-switch
7- class =" mt-0"
7+ class =" mt-0"
88 v-model =" integration.searchable"
99 :label =" $t('globalAlias')"
1010 @change =" updateIntegration()"
2222
2323 <div v-else v-for =" alias of (aliases || [])" :key =" alias.id" >
2424 <code class =" mr-2" >{{ alias.url }}</code >
25- <v-btn icon
26- @click =" copyToClipboard(
27- alias.url, 'The alias URL has been copied to the clipboard.')" >
28- <v-icon >mdi-content-copy</v-icon >
29- </v-btn >
25+
26+ <CopyClipboardButton
27+ :text =" alias.url"
28+ success-message =" The alias URL has been copied to the clipboard."
29+ />
30+
3031 <v-btn icon @click =" deleteAlias(alias.id)" >
3132 <v-icon >mdi-delete</v-icon >
3233 </v-btn >
4546
4647 <IntegrationMatcher class =" mb-6" v-if =" integration.searchable" />
4748
48- <IntegrationExtractValue />
49+ <IntegrationExtractValue />
4950
5051 </div >
5152</template >
5253<script >
5354import IntegrationsBase from ' @/views/project/IntegrationsBase' ;
54- import copyToClipboard from ' @/lib/copyToClipboard' ;
5555import axios from ' axios' ;
56+ import CopyClipboardButton from ' @/components/CopyClipboardButton.vue' ;
5657import IntegrationExtractValue from ' ./IntegrationExtractValue.vue' ;
5758import IntegrationMatcher from ' ./IntegrationMatcher.vue' ;
5859import IntegrationExtractorCrumb from ' ./IntegrationExtractorCrumb.vue' ;
5960
6061export default {
6162 mixins: [IntegrationsBase],
62- components: { IntegrationMatcher, IntegrationExtractValue, IntegrationExtractorCrumb },
63+ components: {
64+ CopyClipboardButton, IntegrationMatcher, IntegrationExtractValue, IntegrationExtractorCrumb,
65+ },
6366 props: {
6467 projectId: Number ,
6568 },
@@ -79,7 +82,6 @@ export default {
7982 },
8083
8184 methods: {
82- copyToClipboard,
8385 allowActions () {
8486 return true ;
8587 },
0 commit comments