mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 01:33:59 +00:00
fix
This commit is contained in:
@@ -315,7 +315,7 @@
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$: isPinned = !!$pinnedDatabases.find(x => x.name == data.name && x.connection?._id == data.connection?._id);
|
$: isPinned = !!$pinnedDatabases.find(x => x?.name == data.name && x?.connection?._id == data.connection?._id);
|
||||||
$: apps = useUsedApps();
|
$: apps = useUsedApps();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
if (!compare(dragged, data)) {
|
if (!compare(dragged, data)) {
|
||||||
const i1 = _.findIndex(pinned, x => compare(x, dragged));
|
const i1 = _.findIndex(pinned, x => compare(x, dragged));
|
||||||
const i2 = _.findIndex(pinned, x => compare(x, data));
|
const i2 = _.findIndex(pinned, x => compare(x, data));
|
||||||
|
if (i1 >= 0 && i2 >= 0 && i1 != i2) {
|
||||||
const newPinned = [...pinned];
|
const newPinned = [...pinned];
|
||||||
const tmp = newPinned[i1];
|
const tmp = newPinned[i1];
|
||||||
newPinned[i1] = newPinned[i2];
|
newPinned[i1] = newPinned[i2];
|
||||||
@@ -20,6 +21,7 @@
|
|||||||
setPinned(newPinned);
|
setPinned(newPinned);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
@@ -29,6 +31,7 @@
|
|||||||
export let data;
|
export let data;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
{#if data}
|
||||||
{#if data.objectTypeField}
|
{#if data.objectTypeField}
|
||||||
<DatabaseObjectAppObject
|
<DatabaseObjectAppObject
|
||||||
{...$$props}
|
{...$$props}
|
||||||
@@ -68,3 +71,4 @@
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user