update: add cancel buttons.

This commit is contained in:
Darshan
2025-03-28 11:29:33 +05:30
parent 9218a5cb32
commit b21537795e
5 changed files with 38 additions and 8 deletions
@@ -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}