mirror of
https://github.com/appwrite/console.git
synced 2026-04-07 19:17:46 +00:00
Add flag images pre-loader
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
import Loading from './loading.svelte';
|
||||
import { BillingPlan } from '$lib/constants';
|
||||
import { Submit, trackError, trackEvent } from '$lib/actions/analytics';
|
||||
import { addNotification } from '$lib/stores/notifications';
|
||||
import { goto } from '$app/navigation';
|
||||
import { base } from '$app/paths';
|
||||
|
||||
@@ -25,6 +24,10 @@
|
||||
onMount(async () => {
|
||||
if (isCloud) {
|
||||
regions = await sdk.forConsole.billing.listRegions();
|
||||
regions.regions.forEach((region) => {
|
||||
const img = new Image();
|
||||
img.src = getFlagUrl(region.flag);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user