mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: card loading
This commit is contained in:
1 parent
008b2c8b33
commit
5a2d0db3bf
2 files changed
+6
-5
No files matched your search
@@ -168,7 +168,7 @@
|
||||
</div>
|
||||
<div class="cbc-wrapper">
|
||||
{#if !cardActive}
|
||||
<div class="cbc-confetti" transition:fade>
|
||||
<div class="cbc-confetti" transition:fade|local>
|
||||
<Confetti
|
||||
x={[-1.75, 1.85]}
|
||||
y={[-1.875, 1]}
|
||||
@@ -191,7 +191,7 @@
|
||||
on:keydown={() => {
|
||||
/* no-op */
|
||||
}}
|
||||
transition:fade />
|
||||
transition:fade|local />
|
||||
{/if}
|
||||
<div class="controls" class:invisible={!cardActive}>
|
||||
<button
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
import { loading } from '../store';
|
||||
import Create from './createOrganization.svelte';
|
||||
import { isCloud } from '$lib/system';
|
||||
export let data;
|
||||
|
||||
onMount(() => {
|
||||
loading.set(false);
|
||||
@@ -22,9 +23,9 @@
|
||||
// Check if user already viewed cloud card
|
||||
if (isCloud) {
|
||||
const viewed = localStorage.getItem('cloud-card-viewed');
|
||||
console.log('viewed', viewed);
|
||||
if (!viewed) {
|
||||
localStorage.setItem('cloud-card-viewed', 'true');
|
||||
|
||||
if (viewed !== data.account.$id) {
|
||||
localStorage.setItem('cloud-card-viewed', data.account.$id);
|
||||
goto('/card');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user