mirror of
https://github.com/apache/superset.git
synced 2024-09-12 16:49:40 -04:00
overriding annotation and layers' control tab (#4609)
This commit is contained in:
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: {
|
||||
|
Loading…
Reference in New Issue
Block a user