vault touchup

This commit is contained in:
Tim Olson
2023-11-01 13:09:59 -04:00
parent 16e04b0f90
commit 1996ed0e8e
5 changed files with 11 additions and 8 deletions

View File

@@ -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)