address comment.

This commit is contained in:
Darshan committed 2025-01-02 13:57:54 +05:30
1 parent 7414b441d6
commit 819a829f41
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -27,7 +27,7 @@
let classes: string = '';
export { classes as class };
export let submissionLoader = false;
export let showLoaderAnyway = false;
export let forceShowLoader = false;
const isSubmitting = hasContext('form')
? getContext<FormContext>('form').isSubmitting
@@ -86,7 +86,7 @@
aria-label={ariaLabel}
type={submit ? 'submit' : 'button'}
--button-width={fullWidth ? '100%' : undefined}>
{#if ($isSubmitting && submissionLoader) || (showLoaderAnyway && submissionLoader)}
{#if ($isSubmitting && submissionLoader) || (forceShowLoader && submissionLoader)}
<span
class="loader is-small"
style:--p-loader-base-full-color="transparent"
@@ -236,7 +236,7 @@
<Button
size="s"
on:click={createRepository}
showLoaderAnyway={true}
forceShowLoader
submissionLoader={isCreatingRepository}
disabled={!repositoryName ||
!$installation?.$id ||