diff --git a/src/routes/console/project-[project]/settings/+page.ts b/src/routes/console/project-[project]/settings/+page.ts index 687a3c271..125a929bd 100644 --- a/src/routes/console/project-[project]/settings/+page.ts +++ b/src/routes/console/project-[project]/settings/+page.ts @@ -1,4 +1,4 @@ -import { Dependencies } from '$lib/constants'; +import { Dependencies, PAGE_LIMIT } from '$lib/constants'; import { sdk } from '$lib/stores/sdk'; import { Query } from '@appwrite.io/console'; import type { PageLoad } from './$types'; @@ -6,7 +6,7 @@ import type { PageLoad } from './$types'; export const load: PageLoad = async ({ depends, url }) => { depends(Dependencies.PROJECT_VARIABLES); depends(Dependencies.PROJECT_INSTALLATIONS); - const limit = 1; + const limit = PAGE_LIMIT; const offset = Number(url.searchParams.get('offset') ?? 0); return { diff --git a/src/routes/console/project-[project]/settings/updateInstallations.svelte b/src/routes/console/project-[project]/settings/updateInstallations.svelte index 9ae734f71..b1fd6529b 100644 --- a/src/routes/console/project-[project]/settings/updateInstallations.svelte +++ b/src/routes/console/project-[project]/settings/updateInstallations.svelte @@ -34,6 +34,12 @@ let showInstallationDropdown: boolean[] = []; let selectedInstallation: Models.Installation; + enum ProviderNames { + github = 'GitHub', + gitlab = 'GitLab', + bitBucket = 'BitBucket' + } + function getInstallationLink(installation: Models.Installation) { switch (installation.provider) { case 'github': @@ -145,7 +151,9 @@ showInstallationDropdown[i] = false; configureGitHub(); }}> - Configure {installation.provider} + Configure {ProviderNames[ + installation.provider + ]}