1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-02-18 12:40:41 +01:00

fix(UI): data tab opened when non-table element is selected

This commit is contained in:
Fabio Di Stasio 2021-02-22 11:10:04 +01:00
parent b54fefbf25
commit dbab06fcb8

View File

@ -164,6 +164,7 @@ export default {
}, },
selectedTab () { selectedTab () {
if ( if (
(
this.workspace.breadcrumbs.table === null && this.workspace.breadcrumbs.table === null &&
this.workspace.breadcrumbs.view === null && this.workspace.breadcrumbs.view === null &&
this.workspace.breadcrumbs.trigger === null && this.workspace.breadcrumbs.trigger === null &&
@ -171,6 +172,12 @@ export default {
this.workspace.breadcrumbs.function === null && this.workspace.breadcrumbs.function === null &&
this.workspace.breadcrumbs.scheduler === null && this.workspace.breadcrumbs.scheduler === null &&
['data', 'prop'].includes(this.workspace.selected_tab) ['data', 'prop'].includes(this.workspace.selected_tab)
) ||
(
this.workspace.breadcrumbs.table === null &&
this.workspace.breadcrumbs.view === null &&
this.workspace.selected_tab === 'data'
)
) )
return this.queryTabs[0].uid; return this.queryTabs[0].uid;