From e0029317c5f42e2adb32d86fd0f5726190445344 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Fri, 7 Oct 2022 16:03:42 +0530 Subject: [PATCH] feat(gui): add copy option Signed-off-by: Pranav C --- packages/nc-gui/pages/index/index/index.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/pages/index/index/index.vue b/packages/nc-gui/pages/index/index/index.vue index a4fd7fe006..ea0fb6097d 100644 --- a/packages/nc-gui/pages/index/index/index.vue +++ b/packages/nc-gui/pages/index/index/index.vue @@ -16,6 +16,7 @@ import { themeV2Colors, useApi, useBreakpoints, + useCopy, useGlobal, useNuxtApp, useUIPermission, @@ -130,12 +131,20 @@ const customRow = (record: ProjectType) => ({ }) onBeforeMount(loadProjects) + +const { copy } = useCopy() + +const copyProjectMeta = async () => { + const aggregatedMetaInfo = await $api.utils.aggregatedMetaInfo() + copy(JSON.stringify(aggregatedMetaInfo)) + message.info('Copied aggregated project meta to clipboard') +}