Fix onboarding issue found with Tanzim
This commit is contained in:
@@ -12,12 +12,10 @@
|
|||||||
export let disablePadding = false;
|
export let disablePadding = false;
|
||||||
export let isDisabled = false;
|
export let isDisabled = false;
|
||||||
export let isLoading = false;
|
export let isLoading = false;
|
||||||
|
|
||||||
$: isDisabled = isLoading ? true : isDisabled;
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="{isDisabled
|
class="{isLoading || isDisabled
|
||||||
? 'opacity-25 cursor-not-allowed'
|
? 'opacity-25 cursor-not-allowed'
|
||||||
: 'cursor-pointer'} flex items-center h-auto {VARIANTS_CLASS[
|
: 'cursor-pointer'} flex items-center h-auto {VARIANTS_CLASS[
|
||||||
isLoading ? VARIANTS.OUTLINED : variant
|
isLoading ? VARIANTS.OUTLINED : variant
|
||||||
@@ -31,7 +29,7 @@
|
|||||||
on:click={onClick}
|
on:click={onClick}
|
||||||
{name}
|
{name}
|
||||||
{type}
|
{type}
|
||||||
disabled={isDisabled}
|
disabled={isLoading || isDisabled}
|
||||||
>
|
>
|
||||||
{#if isLoading}
|
{#if isLoading}
|
||||||
<Loading withOverlay={false} small />
|
<Loading withOverlay={false} small />
|
||||||
|
|||||||
Reference in New Issue
Block a user