1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-17 21:44:05 +00:00

Update ObjectGrid to not display menu in object

This commit is contained in:
2023-01-21 15:12:27 +01:00
parent 01166166e9
commit 53093681ec
2 changed files with 9 additions and 5 deletions

View File

@ -50,10 +50,13 @@
</div>
<div class="grid">
<ObjectGrid key="name" data={indexes.map(idx => ({
...idx,
menu: [ { label: 'Drop this index', fn: () => drop(idx.name) } ],
}))} bind:activePath on:trigger={e => openJson(e.detail.itemKey)} />
<ObjectGrid
key="name"
data={indexes}
getRootMenu={(_, idx) => [ { label: 'Drop this index', fn: () => drop(idx.name) } ]}
bind:activePath
on:trigger={e => openJson(e.detail.itemKey)}
/>
</div>
</div>