mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: leftovers from project overview
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user