mirror of https://github.com/Fabio286/antares.git
fix: issue switching table after using a filter, fixes#691
This commit is contained in:
parent
b7dfd5cb8c
commit
4a1697d633
|
@ -441,6 +441,25 @@ const resizeScroller = () => {
|
|||
const updateFilters = (clausoles: TableFilterClausole[]) => {
|
||||
filters.value = clausoles;
|
||||
results.value = [];
|
||||
|
||||
const permanentTabs = {
|
||||
table: 'data',
|
||||
view: 'data',
|
||||
trigger: 'trigger-props',
|
||||
triggerFunction: 'trigger-function-props',
|
||||
function: 'function-props',
|
||||
routine: 'routine-props',
|
||||
procedure: 'routine-props',
|
||||
scheduler: 'scheduler-props'
|
||||
} as Record<string, string>;
|
||||
|
||||
newTab({
|
||||
uid: props.connection.uid,
|
||||
schema: props.schema,
|
||||
elementName: props.table,
|
||||
type: permanentTabs[props.elementType],
|
||||
elementType: props.elementType
|
||||
});
|
||||
getTableData();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue