mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Don't show heading for first tab
This commit is contained in:
parent
5d4034be5a
commit
d6c6ba642e
@ -87,10 +87,11 @@ export class VisualizationTab extends PureComponent<Props> {
|
||||
|
||||
let template = '';
|
||||
for (let i = 0; i < panelCtrl.editorTabs.length; i++) {
|
||||
template += `
|
||||
<div class="form-section" ng-cloak>
|
||||
<div class="form-section__header">{{ctrl.editorTabs[${i}].title}}</div>
|
||||
<div class="form-section__body">
|
||||
template +=
|
||||
`
|
||||
<div class="form-section" ng-cloak>` +
|
||||
(i > 0 ? `<div class="form-section__header">{{ctrl.editorTabs[${i}].title}}</div>` : '') +
|
||||
`<div class="form-section__body">
|
||||
<panel-editor-tab editor-tab="ctrl.editorTabs[${i}]" ctrl="ctrl"></panel-editor-tab>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user