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 !
35 lines
701 B
TypeScript
Executable File
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,
|
|
}
|
|
},
|
|
})
|