diff --git a/src/components/configurationFormView.vue b/src/components/configurationFormView.vue index 1810f3c..e9560ad 100644 --- a/src/components/configurationFormView.vue +++ b/src/components/configurationFormView.vue @@ -10,6 +10,7 @@ const KB_UNIT_MAP = { } const route = useRoute() +const toast = useToast() const tab = ref('0') const tabs = ref([ @@ -121,12 +122,27 @@ const formatValue = (value) => { // return formatted return `${result.value}${result.unit}` } + +const onCopyConfig = () => { + copy(config) + toast.add({ + title: 'Скопировано', + description: 'Конфигурация скопирована успешно', + duration: 7500, + icon: 'lucide:copy', + }) +}