mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: tipying,exhisting repository
This commit is contained in:
1 parent
18c73880bf
commit
4440e6b192
3 files changed
+11
-7
No files matched your search
@@ -11,9 +11,9 @@
|
||||
import Repositories from '../components/repositories.svelte';
|
||||
import { installation, repository, templateConfig } from '../store';
|
||||
|
||||
let selectedInstallationId;
|
||||
let hasInstallations;
|
||||
let selectedRepository;
|
||||
let selectedInstallationId: string;
|
||||
let hasInstallations: boolean;
|
||||
let selectedRepository: string;
|
||||
|
||||
async function beforeSubmit() {
|
||||
if (!hasInstallations || !$installation) {
|
||||
@@ -76,6 +76,7 @@
|
||||
</svelte:fragment>
|
||||
|
||||
{#if $templateConfig.repositoryBehaviour === 'existing'}
|
||||
console.log('test');
|
||||
<Repositories bind:hasInstallations bind:selectedRepository />
|
||||
{:else}
|
||||
{#await loadInstallations()}
|
||||
|
||||
@@ -18,11 +18,14 @@
|
||||
</svelte:fragment>
|
||||
|
||||
<ul class="u-flex u-flex-vertical u-gap-24">
|
||||
<LabelCard name="test" value="new" bind:group={$templateConfig.repositoryBehaviour}>
|
||||
<LabelCard name="behaviour" value="new" bind:group={$templateConfig.repositoryBehaviour}>
|
||||
<svelte:fragment slot="title">Create a new repository</svelte:fragment>
|
||||
Clone the template and create a new repository in your selected organization.
|
||||
</LabelCard>
|
||||
<LabelCard name="test" value="new" bind:group={$templateConfig.repositoryBehaviour}>
|
||||
<LabelCard
|
||||
name="behaviour"
|
||||
value="existing"
|
||||
bind:group={$templateConfig.repositoryBehaviour}>
|
||||
<svelte:fragment slot="title">Add to existing repository</svelte:fragment>
|
||||
Clone the template to an existing repository in your selected organization.
|
||||
</LabelCard>
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
import { WizardStep } from '$lib/layout';
|
||||
import Repositories from '../components/repositories.svelte';
|
||||
|
||||
let hasInstallations;
|
||||
let selectedRepository;
|
||||
let hasInstallations: boolean;
|
||||
let selectedRepository: string;
|
||||
async function beforeSubmit() {
|
||||
if (!hasInstallations) {
|
||||
throw new Error('Please connect a Git provider');
|
||||
|
||||
Reference in new issue
Block a user