From aa1bddecda3f4b1dd248ff825b6233f72df288a8 Mon Sep 17 00:00:00 2001 From: HugoRCD Date: Mon, 24 Feb 2025 09:34:05 +0100 Subject: [PATCH] enhancement: Shift + click to select multiples variables --- .../shelve/app/components/variable/Create.vue | 6 ----- apps/shelve/app/components/variable/Item.vue | 8 ++++-- .../projects/[projectId]/index/variables.vue | 27 ++++++++++++++----- 3 files changed, 27 insertions(+), 14 deletions(-) diff --git a/apps/shelve/app/components/variable/Create.vue b/apps/shelve/app/components/variable/Create.vue index 42cff517..8b5e2b80 100644 --- a/apps/shelve/app/components/variable/Create.vue +++ b/apps/shelve/app/components/variable/Create.vue @@ -9,12 +9,6 @@ const { createLoading, createVariables } = useVariablesService() const route = useRoute() const projectId = route.params.projectId as string -/*const project = useProject(projectId) - -const { data: secrets, status, refresh, error } = await useFetch('/api/github/secrets', { - method: 'GET', - query: { repository: sanitizeGithubUrl(project.value?.repository) }, -})*/ const { variablesInput, diff --git a/apps/shelve/app/components/variable/Item.vue b/apps/shelve/app/components/variable/Item.vue index 6f628340..c1cc7252 100644 --- a/apps/shelve/app/components/variable/Item.vue +++ b/apps/shelve/app/components/variable/Item.vue @@ -39,15 +39,19 @@ const variableToUpdate = computed(() => ({ })) const showEdit = ref(false) + +const handleClick = (event: MouseEvent) => { + emit('toggleSelected', event) +}