Skip to content

Commit 99d89a4

Browse files
committed
Hided legacy info in home page if v1 is not enabled
1 parent 9288658 commit 99d89a4

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/routes/+page.svelte

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,18 @@
3232
{/if}
3333
</div>
3434

35-
<p>
36-
This is the new version 2 of Fractal. Your older projects and workflows are still available in
37-
the legacy version that you can access in <a href="/v1/projects">the legacy project page</a>. We
38-
encourage you to switch to Fractal V2 for all new projects and report any issues you find.
39-
</p>
40-
<p>
41-
We strictly separate projects, datasets and workflows into Fractal V2 and legacy. You can use
42-
many of your existing tasks in the Fractal V2 version without any changes required. If you don't
43-
find the task you require in Fractal V2, please reach out to the support.
44-
</p>
35+
{#if $page.data.v1Enabled}
36+
<p>
37+
This is the new version 2 of Fractal. Your older projects and workflows are still available in
38+
the legacy version that you can access in <a href="/v1/projects">the legacy project page</a>.
39+
We encourage you to switch to Fractal V2 for all new projects and report any issues you find.
40+
</p>
41+
<p>
42+
We strictly separate projects, datasets and workflows into Fractal V2 and legacy. You can use
43+
many of your existing tasks in the Fractal V2 version without any changes required. If you
44+
don't find the task you require in Fractal V2, please reach out to the support.
45+
</p>
46+
{/if}
4547

4648
{#if env.PUBLIC_FRACTAL_ADMIN_SUPPORT_EMAIL}
4749
<h3 class="fw-light">Where to get support</h3>

0 commit comments

Comments
 (0)