diff --git a/src/renderer/components/WorkspaceTabTable.vue b/src/renderer/components/WorkspaceTabTable.vue index 72804d70..5da75611 100644 --- a/src/renderer/components/WorkspaceTabTable.vue +++ b/src/renderer/components/WorkspaceTabTable.vue @@ -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; + + newTab({ + uid: props.connection.uid, + schema: props.schema, + elementName: props.table, + type: permanentTabs[props.elementType], + elementType: props.elementType + }); getTableData(); };