diff --git a/frontend/src/lib/forms/Button.svelte b/frontend/src/lib/forms/Button.svelte index b2f8c1e9c..595e951ba 100644 --- a/frontend/src/lib/forms/Button.svelte +++ b/frontend/src/lib/forms/Button.svelte @@ -7,13 +7,16 @@ export let type: undefined | 'submit' = undefined; export let size: undefined | 'btn-sm' = undefined; export let disabled = false; + export let customLoader = false; diff --git a/frontend/src/lib/icons/Icon.svelte b/frontend/src/lib/icons/Icon.svelte index 99fa52775..874b49d13 100644 --- a/frontend/src/lib/icons/Icon.svelte +++ b/frontend/src/lib/icons/Icon.svelte @@ -10,6 +10,8 @@ export let size: IconSize = 'text-lg'; export let color: `text-${string}` | undefined = undefined; export let pale = false; + export let spin = false; + export let spinReverse = false; // For pixel perfect text alignment, because the svgs often contain vertical white-space export let y: string | undefined = undefined; @@ -17,5 +19,5 @@ {#if icon} - + {/if} diff --git a/frontend/src/routes/(authenticated)/project/[project_code]/+page.svelte b/frontend/src/routes/(authenticated)/project/[project_code]/+page.svelte index ec4a4bb70..76ea3ef35 100644 --- a/frontend/src/routes/(authenticated)/project/[project_code]/+page.svelte +++ b/frontend/src/routes/(authenticated)/project/[project_code]/+page.svelte @@ -55,6 +55,7 @@ import { onMount } from 'svelte'; import { getSearchParamValues } from '$lib/util/query-params'; import FlexModelVersionText from '$lib/components/Projects/FlexModelVersionText.svelte'; + import CrdtSyncButton from './CrdtSyncButton.svelte'; export let data: PageData; $: user = data.user; @@ -312,6 +313,7 @@ {/if} {#if project.type === ProjectType.FlEx && $isDev} + {:else} diff --git a/frontend/src/routes/(authenticated)/project/[project_code]/CrdtSyncButton.svelte b/frontend/src/routes/(authenticated)/project/[project_code]/CrdtSyncButton.svelte new file mode 100644 index 000000000..4c27935b3 --- /dev/null +++ b/frontend/src/routes/(authenticated)/project/[project_code]/CrdtSyncButton.svelte @@ -0,0 +1,43 @@ + + +