1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-19 22:18:03 +00:00

menu mess

This commit is contained in:
2023-05-27 21:18:47 +02:00
parent ab1891be27
commit f18eea7915
7 changed files with 110 additions and 52 deletions

View File

@ -9,6 +9,7 @@
import DumpInfo from './dump.svelte';
import HostDetail from './hostdetail.svelte';
import HostTree from './hosttree.svelte';
import sharedState from '$lib/stores/sharedstate';
export let hosts = {};
export let activeHostKey = '';
@ -20,6 +21,10 @@
let hostDetailKey = '';
let exportInfo;
$: sharedState.currentHost.set(activeHostKey);
$: sharedState.currentDb.set(activeDbKey);
$: sharedState.currentColl.set(activeCollKey);
async function getHosts() {
hosts = await Hosts();
}