Skip to content

Commit

Permalink
more feedback for copy button
Browse files Browse the repository at this point in the history
Signed-off-by: Chris-Robin Ennen <[email protected]>
  • Loading branch information
4350pChris committed Apr 2, 2024
1 parent 39d10fc commit 9dd8e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/nav/Token.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { copied, copy } = useClipboard({ copiedDuring: 3000, source: link })
</script>

<template>
<button v-if="token" class="btn btn-ghost" @click="copy()">
<button v-if="token" class="btn transition" :class="copied ? 'btn-success btn-outline' : 'btn-ghost'" @click="copy()">
<Transition name="fade" mode="out-in">
<span v-if="copied">
{{ $t("token.copied") }}
Expand Down

0 comments on commit 9dd8e9c

Please sign in to comment.