mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
parent
c9e587753e
commit
ac009d9b0b
4 changed files with 10 additions and 10 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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: [],
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue