mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
update: add cancel buttons.
This commit is contained in:
@@ -231,9 +231,15 @@ const val APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject.client.config.endpoint}"
|
||||
</Button>
|
||||
{:else}
|
||||
<Button
|
||||
fullWidthMobile
|
||||
disabled={isCreatingPlatform}
|
||||
size="s"
|
||||
on:click={() => (showExitModal = true)}
|
||||
secondary>
|
||||
Cancel
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
size="s"
|
||||
submit
|
||||
forceShowLoader
|
||||
submissionLoader={isCreatingPlatform}
|
||||
disabled={!$createPlatform.name || !$createPlatform.key || isCreatingPlatform}
|
||||
|
||||
@@ -257,9 +257,15 @@ APPWRITE_PUBLIC_ENDPOINT: "${sdk.forProject.client.config.endpoint}"
|
||||
</Button>
|
||||
{:else}
|
||||
<Button
|
||||
fullWidthMobile
|
||||
disabled={isCreatingPlatform}
|
||||
size="s"
|
||||
on:click={() => (showExitModal = true)}
|
||||
secondary>
|
||||
Cancel
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
size="s"
|
||||
submit
|
||||
forceShowLoader
|
||||
submissionLoader={isCreatingPlatform}
|
||||
disabled={!platform ||
|
||||
|
||||
@@ -313,9 +313,15 @@ static const String APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject.client.config.e
|
||||
</Button>
|
||||
{:else}
|
||||
<Button
|
||||
fullWidthMobile
|
||||
disabled={isCreatingPlatform}
|
||||
size="s"
|
||||
on:click={() => (showExitModal = true)}
|
||||
secondary>
|
||||
Cancel
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
size="s"
|
||||
submit
|
||||
forceShowLoader
|
||||
submissionLoader={isCreatingPlatform}
|
||||
disabled={!platform ||
|
||||
|
||||
@@ -279,9 +279,15 @@ const APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject.client.config.endpoint}";
|
||||
</Button>
|
||||
{:else}
|
||||
<Button
|
||||
fullWidthMobile
|
||||
disabled={isCreatingPlatform}
|
||||
size="s"
|
||||
on:click={() => (showExitModal = true)}
|
||||
secondary>
|
||||
Cancel
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
size="s"
|
||||
submit
|
||||
forceShowLoader
|
||||
submissionLoader={isCreatingPlatform}
|
||||
disabled={!platform ||
|
||||
|
||||
@@ -387,6 +387,12 @@ ${prefix}APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject.client.config.endpoint}"
|
||||
variant="secondary"
|
||||
disabled={isCreatingPlatform}>Go to dashboard</Button.Anchor>
|
||||
{:else}
|
||||
<Button.Button
|
||||
size="s"
|
||||
on:click={() => (showExitModal = true)}
|
||||
variant="secondary"
|
||||
disabled={isCreatingPlatform}>Cancel</Button.Button>
|
||||
|
||||
<Button.Button size="s" on:click={createWebPlatform} disabled={!selectedFramework}
|
||||
>Create platform</Button.Button>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user