mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-22 00:10:37 +00:00
Disable social login for mobile (#4852)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
a6f962469f
commit
fddf5270b6
@ -1,7 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { concatLink } from '@hcengineering/core'
|
import { concatLink } from '@hcengineering/core'
|
||||||
import { getMetadata } from '@hcengineering/platform'
|
import { getMetadata } from '@hcengineering/platform'
|
||||||
import { AnySvelteComponent, Button, Grid, getCurrentLocation } from '@hcengineering/ui'
|
import { AnySvelteComponent, Button, Grid, deviceOptionsStore, getCurrentLocation } from '@hcengineering/ui'
|
||||||
import { onMount } from 'svelte'
|
import { onMount } from 'svelte'
|
||||||
import login from '../plugin'
|
import login from '../plugin'
|
||||||
import { getProviders } from '../utils'
|
import { getProviders } from '../utils'
|
||||||
@ -49,19 +49,21 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="container">
|
{#if !$deviceOptionsStore.isMobile}
|
||||||
<Grid column={getColumnsCount(enabledProviders.length)} columnGap={1} rowGap={1} alignItems={'center'}>
|
<div class="container">
|
||||||
{#each enabledProviders as provider}
|
<Grid column={getColumnsCount(enabledProviders.length)} columnGap={1} rowGap={1} alignItems={'center'}>
|
||||||
<a href={getLink(provider)} target="_blank" rel="noopener noreferrer">
|
{#each enabledProviders as provider}
|
||||||
<Button kind={'contrast'} shape={'round2'} size={'x-large'} width="100%" stopPropagation={false}>
|
<a href={getLink(provider)} target="_blank" rel="noopener noreferrer">
|
||||||
<svelte:fragment slot="content">
|
<Button kind={'contrast'} shape={'round2'} size={'x-large'} width="100%" stopPropagation={false}>
|
||||||
<svelte:component this={provider.component} />
|
<svelte:fragment slot="content">
|
||||||
</svelte:fragment>
|
<svelte:component this={provider.component} />
|
||||||
</Button>
|
</svelte:fragment>
|
||||||
</a>
|
</Button>
|
||||||
{/each}
|
</a>
|
||||||
</Grid>
|
{/each}
|
||||||
</div>
|
</Grid>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.container {
|
.container {
|
||||||
|
Loading…
Reference in New Issue
Block a user