Skip to content

Commit 4d73cf0

Browse files
soujayjohnsimons
andauthored
Update src/Frontend/src/components/CopyToClipboard.vue
Co-authored-by: John Simons <[email protected]>
1 parent 1b8a668 commit 4d73cf0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Frontend/src/components/CopyToClipboard.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ async function copyToClipboard() {
2222
</script>
2323

2424
<template>
25-
<Tippy content="Copied" ref="tippyRef" trigger="manual" :title="props.isIconOnly ? 'Copy to Clipboard' : ''">
26-
<button type="button" class="btn btn-secondary btn-sm" @click="copyToClipboard"><i class="fa fa-copy"></i> <span v-if="!props.isIconOnly">Copy to clipboard</span></button>
25+
<Tippy content="Copied" ref="tippyRef" trigger="manual">
26+
<button v-if="!props.isIconOnly" type="button" class="btn btn-secondary btn-sm" @click="copyToClipboard"><i class="fa fa-copy"></i> Copy to clipboard</button>
27+
<button v-else type="button" class="btn btn-secondary btn-sm" @click="copyToClipboard" v-tippy="'Copy to clipboard'"><i class="fa fa-copy"></i></button>
2728
</Tippy>
2829
</template>

0 commit comments

Comments
 (0)