mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: tab selection on overview.
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
import { onMount, setContext, type Component } from 'svelte';
|
||||
import Bandwidth from './bandwidth.svelte';
|
||||
import Requests from './requests.svelte';
|
||||
import { usage } from './store';
|
||||
import { selectedTab, usage } from './store';
|
||||
import { formatNum } from '$lib/helpers/string';
|
||||
import { periodToDates } from '$lib/layout/usage.svelte';
|
||||
import { canWriteProjects } from '$lib/stores/roles';
|
||||
@@ -52,7 +52,7 @@
|
||||
}
|
||||
|
||||
function isTabSelected(key: string) {
|
||||
return page.url.pathname === `${path}/${key}`;
|
||||
return $selectedTab === key;
|
||||
}
|
||||
|
||||
$: $registerCommands([
|
||||
|
||||
Reference in New Issue
Block a user