mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-09-27 14:10:17 +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 { usePagination } from '~/compositions/usePaginate';
|
||||||
import { Secret, WebhookEvents } from '~/lib/api/types';
|
import { Secret, WebhookEvents } from '~/lib/api/types';
|
||||||
|
|
||||||
const emptySecret = {
|
const emptySecret: Partial<Secret> = {
|
||||||
name: '',
|
name: '',
|
||||||
value: '',
|
value: '',
|
||||||
image: [],
|
images: [],
|
||||||
event: [WebhookEvents.Push],
|
events: [WebhookEvents.Push],
|
||||||
};
|
};
|
||||||
|
|
||||||
const apiClient = useApiClient();
|
const apiClient = useApiClient();
|
||||||
|
|
|
@ -49,11 +49,11 @@ import useNotifications from '~/compositions/useNotifications';
|
||||||
import { usePagination } from '~/compositions/usePaginate';
|
import { usePagination } from '~/compositions/usePaginate';
|
||||||
import { Org, Secret, WebhookEvents } from '~/lib/api/types';
|
import { Org, Secret, WebhookEvents } from '~/lib/api/types';
|
||||||
|
|
||||||
const emptySecret = {
|
const emptySecret: Partial<Secret> = {
|
||||||
name: '',
|
name: '',
|
||||||
value: '',
|
value: '',
|
||||||
image: [],
|
images: [],
|
||||||
event: [WebhookEvents.Push],
|
events: [WebhookEvents.Push],
|
||||||
};
|
};
|
||||||
|
|
||||||
const apiClient = useApiClient();
|
const apiClient = useApiClient();
|
||||||
|
|
|
@ -49,7 +49,7 @@ import useNotifications from '~/compositions/useNotifications';
|
||||||
import { usePagination } from '~/compositions/usePaginate';
|
import { usePagination } from '~/compositions/usePaginate';
|
||||||
import { Repo, Secret, WebhookEvents } from '~/lib/api/types';
|
import { Repo, Secret, WebhookEvents } from '~/lib/api/types';
|
||||||
|
|
||||||
const emptySecret = {
|
const emptySecret: Partial<Secret> = {
|
||||||
name: '',
|
name: '',
|
||||||
value: '',
|
value: '',
|
||||||
images: [],
|
images: [],
|
||||||
|
|
|
@ -55,11 +55,11 @@ import useNotifications from '~/compositions/useNotifications';
|
||||||
import { usePagination } from '~/compositions/usePaginate';
|
import { usePagination } from '~/compositions/usePaginate';
|
||||||
import { Secret, WebhookEvents } from '~/lib/api/types';
|
import { Secret, WebhookEvents } from '~/lib/api/types';
|
||||||
|
|
||||||
const emptySecret = {
|
const emptySecret: Partial<Secret> = {
|
||||||
name: '',
|
name: '',
|
||||||
value: '',
|
value: '',
|
||||||
image: [],
|
images: [],
|
||||||
event: [WebhookEvents.Push],
|
events: [WebhookEvents.Push],
|
||||||
};
|
};
|
||||||
|
|
||||||
const apiClient = useApiClient();
|
const apiClient = useApiClient();
|
||||||
|
|
Loading…
Reference in a new issue