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 = [];
|
const displaySectionsToRender = [];
|
||||||
allSectionsToRender.forEach((section) => {
|
allSectionsToRender.forEach((section) => {
|
||||||
if (section.controlSetRows.some(rows => rows.some(
|
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);
|
querySectionsToRender.push(section);
|
||||||
} else {
|
} else {
|
||||||
displaySectionsToRender.push(section);
|
displaySectionsToRender.push(section);
|
||||||
|
@ -1702,6 +1702,7 @@ export const controls = {
|
|||||||
default: [],
|
default: [],
|
||||||
description: 'Annotation Layers',
|
description: 'Annotation Layers',
|
||||||
renderTrigger: true,
|
renderTrigger: true,
|
||||||
|
tabOverride: 'data',
|
||||||
},
|
},
|
||||||
|
|
||||||
having_filters: {
|
having_filters: {
|
||||||
|
Loading…
Reference in New Issue
Block a user