mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: repository name too reactive
This commit is contained in:
+6
-7
@@ -54,7 +54,7 @@
|
||||
let rootDir = './';
|
||||
let connectBehaviour: 'now' | 'later' = 'now';
|
||||
let repositoryBehaviour: 'new' | 'existing' = 'new';
|
||||
let repositoryName = '';
|
||||
let repositoryName = undefined;
|
||||
let repositoryPrivate = true;
|
||||
let selectedInstallationId = '';
|
||||
let selectedRepository = '';
|
||||
@@ -202,13 +202,15 @@
|
||||
|
||||
$: if (repositoryBehaviour === 'new') {
|
||||
selectedInstallationId = $installation?.$id;
|
||||
repositoryName = name.split(' ').join('-').toLowerCase();
|
||||
repositoryName ??= name.split(' ').join('-').toLowerCase();
|
||||
}
|
||||
|
||||
$: if (connectBehaviour === 'later') {
|
||||
selectedRepository = null;
|
||||
}
|
||||
|
||||
$: console.log(repositoryName);
|
||||
|
||||
$: console.log(data.template);
|
||||
$: console.log(variables);
|
||||
</script>
|
||||
@@ -330,11 +332,8 @@
|
||||
</Empty>
|
||||
</Card>
|
||||
{/if}
|
||||
{:else}
|
||||
{#if data.template.variables?.length}
|
||||
<Configuration bind:variables templateVariables={data.template.variables} />
|
||||
{/if}
|
||||
<!-- <Domain bind:domain bind:domainIsValid /> -->
|
||||
{:else if data.template.variables?.length}
|
||||
<Configuration bind:variables templateVariables={data.template.variables} />
|
||||
{/if}
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
|
||||
Reference in New Issue
Block a user