76cbcef4e6
* WIP Developer Settings * Access Tokens * scopes load fix * mapping to correct struct * Updates to Application * Update to apps.js to fix scopes error * Application table done * Token confirmation done. * Application Success * Fix ts * Darkmode fixes * Responsive fix * Fixes for PR * Pass size prop to Editable Avatar * Updates from PR comments * Section Header - TS Types * Add Typeguard to Delete Dialog * Add Description to scopes query * minor type guard fix * edit application cache update fix * Fix Dialog Expansion * Rename mutations to correct casing * Remove unneeded import for defineProps --------- Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
25 lines
532 B
Vue
25 lines
532 B
Vue
<template>
|
|
<FormClipboardInput :value="value" v-bind="$attrs" @copy="handleCopy" />
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { FormClipboardInput } from '@speckle/ui-components'
|
|
import { useClipboard } from '~~/composables/browser'
|
|
|
|
const { copy } = useClipboard()
|
|
|
|
defineProps({
|
|
value: {
|
|
type: String,
|
|
required: true
|
|
}
|
|
})
|
|
|
|
const handleCopy = async (value: string) => {
|
|
await copy(value, {
|
|
successMessage: 'Value copied to clipboard',
|
|
failureMessage: 'Failed to copy value to clipboard'
|
|
})
|
|
}
|
|
</script>
|