Files
newfreeplanet_OLD/src/components/CCopyBtn/CCopyBtn.ts
paoloar77 65bde785da Il creatore del Gruppo deve già appartenere al Gruppo stesso
Non permettere di aggiungere un Gruppo con lo stesso nome o codice
quando cancelli un Gruppo, cancella anche tutti i riferimenti sugli utenti di quel gruppo.
Errore caricamento Immagini !
2022-02-28 17:20:31 +01:00

35 lines
701 B
TypeScript
Executable File

import { tools } from '../../store/Modules/tools'
import { useQuasar } from 'quasar'
import { useI18n } from '@src/boot/i18n'
import { useUserStore } from '@store/UserStore'
import { useGlobalStore } from '@store/globalStore'
import { defineComponent } from 'vue'
export default defineComponent({
name: 'CCopyBtn',
props: {
texttocopy: {
type: String,
required: true,
},
title: {
type: String,
required: false,
default: '',
},
},
components: {},
setup(props) {
const $q = useQuasar()
function copytoclip() {
tools.copyStringToClipboard($q, props.texttocopy, true)
}
return {
copytoclip,
tools,
}
},
})