1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-24 08:02:18 +02:00

Fix secret creation (#2862)

closes #2821
This commit is contained in:
Anbraten 2023-11-22 19:53:59 +01:00 committed by GitHub
parent c9e587753e
commit ac009d9b0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 10 deletions

View File

@ -50,11 +50,11 @@ import useNotifications from '~/compositions/useNotifications';
import { usePagination } from '~/compositions/usePaginate';
import { Secret, WebhookEvents } from '~/lib/api/types';
const emptySecret = {
const emptySecret: Partial<Secret> = {
name: '',
value: '',
image: [],
event: [WebhookEvents.Push],
images: [],
events: [WebhookEvents.Push],
};
const apiClient = useApiClient();

View File

@ -49,11 +49,11 @@ import useNotifications from '~/compositions/useNotifications';
import { usePagination } from '~/compositions/usePaginate';
import { Org, Secret, WebhookEvents } from '~/lib/api/types';
const emptySecret = {
const emptySecret: Partial<Secret> = {
name: '',
value: '',
image: [],
event: [WebhookEvents.Push],
images: [],
events: [WebhookEvents.Push],
};
const apiClient = useApiClient();

View File

@ -49,7 +49,7 @@ import useNotifications from '~/compositions/useNotifications';
import { usePagination } from '~/compositions/usePaginate';
import { Repo, Secret, WebhookEvents } from '~/lib/api/types';
const emptySecret = {
const emptySecret: Partial<Secret> = {
name: '',
value: '',
images: [],

View File

@ -55,11 +55,11 @@ import useNotifications from '~/compositions/useNotifications';
import { usePagination } from '~/compositions/usePaginate';
import { Secret, WebhookEvents } from '~/lib/api/types';
const emptySecret = {
const emptySecret: Partial<Secret> = {
name: '',
value: '',
image: [],
event: [WebhookEvents.Push],
images: [],
events: [WebhookEvents.Push],
};
const apiClient = useApiClient();