mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
sort database list #178
This commit is contained in:
parent
c93594d8ca
commit
17efc3d32c
@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { filterName } from 'dbgate-tools';
|
||||
import _ from 'lodash';
|
||||
import { useDatabaseList } from '../utility/metadataLoaders';
|
||||
import AppObjectList from './AppObjectList.svelte';
|
||||
import * as databaseAppObject from './DatabaseAppObject.svelte';
|
||||
@ -11,6 +12,9 @@
|
||||
</script>
|
||||
|
||||
<AppObjectList
|
||||
list={($databases || []).filter(x => filterName(filter, x.name)).map(db => ({ ...db, connection: data }))}
|
||||
list={_.sortBy(
|
||||
($databases || []).filter(x => filterName(filter, x.name)),
|
||||
'name'
|
||||
).map(db => ({ ...db, connection: data }))}
|
||||
module={databaseAppObject}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user