fix: leftovers from project overview

This commit is contained in:
Torsten Dittmann
2023-07-12 12:45:51 +02:00
parent 4f74f80873
commit 856431b560
2 changed files with 11 additions and 3 deletions
@@ -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 {
@@ -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
]}
</DropListItem>
<DropListItem
icon="x-circle"