[#160] Make success indicator more clear

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-12-15 22:36:47 +01:00
parent 142ca55074
commit d9fe7df6cb
No known key found for this signature in database
GPG Key ID: D91C3E91E4CAD6F5

View File

@ -5,7 +5,7 @@
:disabled="!content"
@click="copy"
>
<i class="fas fa-clipboard" />
<i :class="{'fas fa-fw fa-clipboard': !copyToClipboardSuccess, 'fas fa-fw fa-circle-check': copyToClipboardSuccess}" />
</button>
</template>
<script>
@ -29,7 +29,7 @@ export default {
this.copyToClipboardSuccess = true
window.setTimeout(() => {
this.copyToClipboardSuccess = false
}, 500)
}, 1500)
})
},
},