Skip to content

Commit

Permalink
Hide import account and just show it if we are in dev mode (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgmarchi committed Oct 3, 2024
1 parent 87bb322 commit 96cc474
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/lib/layouts/login/Entrypoint.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
import RelaySelector from "$lib/components/ui/RelaySelector.svelte"
import { Controls } from "$lib/layouts"
import { LoginPage } from "$lib/layouts/login"
import { SettingsStore } from "$lib/state"
import { get } from "svelte/store"
export let page: LoginPage
Expand Down Expand Up @@ -61,9 +63,11 @@
<Button text={$_("pages.auth.create.new")} hook="button-create-account" on:click={_ => (page = LoginPage.Username)} appearance={Appearance.Primary} fill>
<Icon icon={Shape.Plus} />
</Button>
<Button text={$_("pages.auth.create.import")} hook="button-import-account" on:click={_ => (showConfigureRelay = true)} appearance={Appearance.Alt} fill>
<Icon icon={Shape.ArrowUp} />
</Button>
{#if get(SettingsStore.state).devmode}
<Button text={$_("pages.auth.create.import")} hook="button-import-account" on:click={_ => (showConfigureRelay = true)} appearance={Appearance.Alt} fill>
<Icon icon={Shape.ArrowUp} />
</Button>
{/if}
</Controls>
</div>

Expand Down

0 comments on commit 96cc474

Please sign in to comment.