1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-01-18 13:07:58 +00:00

Removed indices objectviewer

This commit is contained in:
Romein van Buren 2023-05-29 22:14:50 +02:00
parent e3f033ee6b
commit 2be4ff0a94
Signed by: romein
GPG Key ID: 0EFF8478ADDF6C49

View File

@ -9,7 +9,6 @@
let indexes = [];
let activePath = [];
let objectViewerData = '';
let creatingNewIndex = false;
$: collection && getIndexes();
@ -35,11 +34,6 @@
activePath[0] = '';
}
}
function openJson(indexId) {
const item = indexes?.find(i => i.name == indexId);
objectViewerData = item;
}
</script>
<div class="indexes">
@ -49,7 +43,6 @@
data={indexes}
getRootMenu={(_, idx) => [ { label: 'Drop this index', fn: () => drop(idx.name) } ]}
bind:activePath
on:trigger={e => openJson(e.detail.itemKey)}
/>
</div>
@ -66,7 +59,6 @@
</div>
</div>
<ObjectViewer bind:data={objectViewerData} />
<IndexDetail bind:creatingNewIndex {collection} on:reload={getIndexes} />
<style>