key detail tab, API

This commit is contained in:
Jan Prochazka
2022-03-06 20:59:01 +01:00
parent 74ad345ba5
commit ccfbe2cccb
4 changed files with 114 additions and 14 deletions

View File

@@ -2,6 +2,7 @@
import AppObjectCore from '../appobj/AppObjectCore.svelte';
import { plusExpandIcon } from '../icons/expandIcons';
import FontIcon from '../icons/FontIcon.svelte';
import openNewTab from '../utility/openNewTab';
import DbKeysSubTree from './DbKeysSubTree.svelte';
@@ -55,6 +56,16 @@
on:click={() => {
if (item.type == 'dir') {
isExpanded = !isExpanded;
} else {
openNewTab({
tabComponent: 'DbKeyDetailTab',
title: 'Key: ' + database,
props: {
isDefaultBrowser: true,
conid,
database,
},
});
}
}}
extInfo={item.count ? `(${item.count})` : null}