mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: perform specified fixes + domain status stuff
This commit is contained in:
1 parent
03aa8df776
commit
831743732c
3 files changed
+7
-4
No files matched your search
+1
-1
@@ -140,7 +140,7 @@
|
||||
undefined, // repositoryId
|
||||
undefined, // branch
|
||||
false, // silentMode
|
||||
rootDir || undefined,
|
||||
undefined, // rootDir
|
||||
specification || undefined
|
||||
);
|
||||
|
||||
|
||||
+2
-2
@@ -38,7 +38,7 @@
|
||||
// State variables
|
||||
let name = data.repository?.name || '';
|
||||
let id = ID.unique();
|
||||
let domain = data.repository?.name?.toLowerCase().replace(/[^a-z0-9]/g, '-') || '';
|
||||
let domain = '';
|
||||
let domainIsValid = false;
|
||||
let framework: Framework = Framework.Nextjs;
|
||||
let rootDir = '';
|
||||
@@ -169,7 +169,7 @@
|
||||
undefined, // providerRepositoryId
|
||||
undefined, // branch
|
||||
false, // silentMode
|
||||
rootDir || undefined
|
||||
undefined // rootDir
|
||||
);
|
||||
|
||||
// Add domain
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
const checkDomain = debounce(async (value: string) => {
|
||||
if (!value) {
|
||||
domainStatus = 'failed';
|
||||
domainIsValid = false;
|
||||
return;
|
||||
}
|
||||
try {
|
||||
@@ -66,6 +67,8 @@
|
||||
disabled={originalDomain === newDomain}
|
||||
on:click={() => (newDomain = originalDomain)}>Reset</Button>
|
||||
</Layout.Stack>
|
||||
<Status status={domainStatus} label={setDomainLabel(domainStatus)}></Status>
|
||||
{#if newDomain}
|
||||
<Status status={domainStatus} label={setDomainLabel(domainStatus)}></Status>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
</Fieldset>
|
||||
Reference in new issue
Block a user