From 902877690d77b2b290a9b449039f003e37d8edf9 Mon Sep 17 00:00:00 2001 From: 6543 Date: Wed, 1 Nov 2023 08:36:59 +0100 Subject: [PATCH] Fix secrets UI (#2687) --- web/components.d.ts | 1 - web/src/components/repo/settings/SecretsTab.vue | 4 ++-- web/src/lib/api/types/secret.ts | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/web/components.d.ts b/web/components.d.ts index 6b2795a14..fe8f5baec 100644 --- a/web/components.d.ts +++ b/web/components.d.ts @@ -25,7 +25,6 @@ declare module 'vue' { CronTab: typeof import('./src/components/repo/settings/CronTab.vue')['default'] DeployPipelinePopup: typeof import('./src/components/layout/popups/DeployPipelinePopup.vue')['default'] DocsLink: typeof import('./src/components/atomic/DocsLink.vue')['default'] - FluidContainer: typeof import('./src/components/layout/FluidContainer.vue')['default'] GeneralTab: typeof import('./src/components/repo/settings/GeneralTab.vue')['default'] Header: typeof import('./src/components/layout/scaffold/Header.vue')['default'] IBiCheckCircleFill: typeof import('~icons/bi/check-circle-fill')['default'] diff --git a/web/src/components/repo/settings/SecretsTab.vue b/web/src/components/repo/settings/SecretsTab.vue index 277d0b0c2..48c6f3c44 100644 --- a/web/src/components/repo/settings/SecretsTab.vue +++ b/web/src/components/repo/settings/SecretsTab.vue @@ -52,8 +52,8 @@ import { Repo, Secret, WebhookEvents } from '~/lib/api/types'; const emptySecret = { name: '', value: '', - image: [], - event: [WebhookEvents.Push], + images: [], + events: [WebhookEvents.Push], }; const apiClient = useApiClient(); diff --git a/web/src/lib/api/types/secret.ts b/web/src/lib/api/types/secret.ts index 15dada809..33c961257 100644 --- a/web/src/lib/api/types/secret.ts +++ b/web/src/lib/api/types/secret.ts @@ -6,5 +6,4 @@ export type Secret = { value: string; events: WebhookEvents[]; images: string[]; - plugins_only: string; };