mirror of
https://github.com/apache/superset.git
synced 2026-04-26 03:24:53 +00:00
overriding annotation and layers' control tab (#4609)
This commit is contained in:
committed by
Chris Williams
parent
95a9b046f8
commit
3371c8bd5c
@@ -92,8 +92,13 @@ class ControlPanelsContainer extends React.Component {
|
||||
const displaySectionsToRender = [];
|
||||
allSectionsToRender.forEach((section) => {
|
||||
if (section.controlSetRows.some(rows => rows.some(
|
||||
control => controls[control] && !controls[control].renderTrigger,
|
||||
))) {
|
||||
control => (
|
||||
controls[control] &&
|
||||
(
|
||||
!controls[control].renderTrigger ||
|
||||
controls[control].tabOverride === 'data'
|
||||
)
|
||||
)))) {
|
||||
querySectionsToRender.push(section);
|
||||
} else {
|
||||
displaySectionsToRender.push(section);
|
||||
|
||||
@@ -1702,6 +1702,7 @@ export const controls = {
|
||||
default: [],
|
||||
description: 'Annotation Layers',
|
||||
renderTrigger: true,
|
||||
tabOverride: 'data',
|
||||
},
|
||||
|
||||
having_filters: {
|
||||
|
||||
Reference in New Issue
Block a user