mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-25 12:06:00 +00:00
fixed search in keyboard shortcuts #1273
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
import CommandModal from '../modals/CommandModal.svelte';
|
import CommandModal from '../modals/CommandModal.svelte';
|
||||||
import { showModal } from '../modals/modalTools';
|
import { showModal } from '../modals/modalTools';
|
||||||
import { commandsCustomized } from '../stores';
|
import { commandsCustomized } from '../stores';
|
||||||
|
import { _tval } from '../translations';
|
||||||
|
|
||||||
$: commandList = _.sortBy(_.values($commandsCustomized), ['category', 'name']);
|
$: commandList = _.sortBy(_.values($commandsCustomized), ['category', 'name']);
|
||||||
let filter;
|
let filter;
|
||||||
@@ -27,7 +28,9 @@
|
|||||||
<div class="table-wrapper">
|
<div class="table-wrapper">
|
||||||
<TableControl
|
<TableControl
|
||||||
clickable
|
clickable
|
||||||
rows={commandList.filter(cmd => filterName(filter, cmd['category'], cmd['name'], cmd['keyText'], cmd['id']))}
|
rows={commandList.filter(cmd =>
|
||||||
|
filterName(filter, _tval(cmd['category']), _tval(cmd['name']), _tval(cmd['keyText']), cmd['id'])
|
||||||
|
)}
|
||||||
columns={[
|
columns={[
|
||||||
{ header: 'Category', fieldName: 'category' },
|
{ header: 'Category', fieldName: 'category' },
|
||||||
{ header: 'Name', fieldName: 'name' },
|
{ header: 'Name', fieldName: 'name' },
|
||||||
|
|||||||
Reference in New Issue
Block a user