vault touchup
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn v-bind="props" v-if="permitted" rounded variant="text" size="small" density="compact" @click="copy()"
|
||||
:class="error?'error':copied?'success':''"
|
||||
:icon="error?'mdi-close-box-outline':copied?'mdi-check-circle-outline':'mdi-content-copy'"/>
|
||||
:icon="error?'mdi-close-box-outline':copied?'mdi-check-circle-outline':'mdi-content-copy'"
|
||||
:text="showText?text:''"
|
||||
/>
|
||||
</template>
|
||||
<span>Copied!</span>
|
||||
</v-tooltip>
|
||||
@@ -12,7 +14,7 @@
|
||||
<script setup lang="ts">
|
||||
import {ref} from "vue";
|
||||
|
||||
const props = defineProps(['text'])
|
||||
const props = defineProps({text:String, showText:{default:false}})
|
||||
const permitted = ref(true)
|
||||
const copied = ref(false)
|
||||
const error = ref(false)
|
||||
|
||||
Reference in New Issue
Block a user