mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 21:46:00 +00:00
duplicator UX
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
<script lang="ts">
|
||||
import { openWebLink } from '../utility/exportFileTools';
|
||||
import contextMenu from '../utility/contextMenu';
|
||||
|
||||
export let href = undefined;
|
||||
export let onClick = undefined;
|
||||
export let menu = '__no_menu';
|
||||
</script>
|
||||
|
||||
<a
|
||||
on:click={(e) => {
|
||||
on:click={e => {
|
||||
if (onClick) onClick(e);
|
||||
else openWebLink(href);
|
||||
}}
|
||||
use:contextMenu={menu}
|
||||
>
|
||||
<slot />
|
||||
</a>
|
||||
|
||||
@@ -51,6 +51,8 @@
|
||||
import openNewTab from '../utility/openNewTab';
|
||||
import useEffect from '../utility/useEffect';
|
||||
import useTimerLabel from '../utility/useTimerLabel';
|
||||
import appObjectTypes from '../appobj';
|
||||
import RowHeaderCell from '../datagrid/RowHeaderCell.svelte';
|
||||
|
||||
export let conid;
|
||||
export let database;
|
||||
@@ -194,6 +196,7 @@
|
||||
table: tableInfo?.schemaName ? `${tableInfo?.schemaName}.${tableInfo?.pureName}` : tableInfo?.pureName,
|
||||
schemaName: tableInfo?.schemaName,
|
||||
pureName: tableInfo?.pureName,
|
||||
tableInfo,
|
||||
};
|
||||
});
|
||||
|
||||
@@ -361,6 +364,7 @@
|
||||
</svelte:fragment>
|
||||
<svelte:fragment slot="5" let:row>
|
||||
<Link
|
||||
menu={appObjectTypes.DatabaseObjectAppObject.createAppObjectMenu({ ...row.tableInfo, conid, database })}
|
||||
onClick={() => {
|
||||
openNewTab({
|
||||
title: row.pureName,
|
||||
|
||||
Reference in New Issue
Block a user