1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-21 23:37:55 +00:00
bramw_baserow/web-frontend/modules/core/components/Copied.vue
2022-01-26 16:04:13 +00:00

36 lines
535 B
Vue

<template>
<div
class="copied"
:class="{
'copied--show': visible,
'copied--hide': hide,
}"
>
{{ $t('copied.label') }}
</div>
</template>
<script>
export default {
name: 'Copied',
data() {
return {
visible: false,
hide: false,
}
},
methods: {
show() {
this.visible = true
setTimeout(() => {
this.hide = true
setTimeout(() => {
this.visible = false
this.hide = false
}, 1000)
}, 500)
},
},
}
</script>