mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: faker.
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
import { isCloud } from '$lib/system';
|
||||
import { goto } from '$app/navigation';
|
||||
import { base } from '$app/paths';
|
||||
import { currentPlan, newOrgModal } from '$lib/stores/organization';
|
||||
import { currentPlan, newOrgModal, organization } from '$lib/stores/organization';
|
||||
import { Click, trackEvent } from '$lib/actions/analytics';
|
||||
import { type Models, Query } from '@appwrite.io/console';
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
@@ -229,7 +229,8 @@
|
||||
}
|
||||
|
||||
let badgeType: 'success' | undefined;
|
||||
$: badgeType = $currentPlan && $currentPlan.name !== BillingPlan.FREE ? 'success' : undefined;
|
||||
$: badgeType =
|
||||
$organization && $organization.billingPlan !== BillingPlan.FREE ? 'success' : undefined;
|
||||
</script>
|
||||
|
||||
<svelte:window on:resize={onResize} />
|
||||
|
||||
@@ -55,7 +55,9 @@ export function generateFakeRecords(
|
||||
} {
|
||||
if (count <= 0) return { ids: [], rows: [] };
|
||||
|
||||
const filteredColumns = columns.filter((col) => col.type !== 'relationship');
|
||||
const filteredColumns = columns.filter(
|
||||
(col) => col.type !== 'relationship' && col.status === 'available'
|
||||
);
|
||||
|
||||
const ids: string[] = [];
|
||||
const rows: Models.Row[] = [];
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
function isCloudOrg(
|
||||
data: Partial<Models.TeamList<Models.Preferences>> | Organization
|
||||
): data is Organization {
|
||||
return isCloud && 'billingPlan' in data ? true : false;
|
||||
return isCloud && 'billingPlan' in data;
|
||||
}
|
||||
|
||||
function createOrg() {
|
||||
|
||||
Reference in New Issue
Block a user