diff --git a/public/app/features/dashboard/components/PanelEditor/OptionsPaneContent.tsx b/public/app/features/dashboard/components/PanelEditor/OptionsPaneContent.tsx index 43987d2b441..3cc2d533068 100644 --- a/public/app/features/dashboard/components/PanelEditor/OptionsPaneContent.tsx +++ b/public/app/features/dashboard/components/PanelEditor/OptionsPaneContent.tsx @@ -184,11 +184,14 @@ export const TabsBarContent: React.FC<{ ) : ( <> - {tabSelections.map(item => { - return ( - setActiveTab(item.value)} /> - ); - })} + {tabSelections.map(item => ( + setActiveTab(item.value)} + /> + ))}
)} @@ -219,7 +222,7 @@ const tabSelections: Array> = [ value: 'options', }, { - label: 'Data', + label: 'Fields', value: 'defaults', }, { diff --git a/public/app/features/dashboard/components/PanelEditor/PanelOptionsTab.tsx b/public/app/features/dashboard/components/PanelEditor/PanelOptionsTab.tsx index ecb4867df1e..8851a40e2e2 100644 --- a/public/app/features/dashboard/components/PanelEditor/PanelOptionsTab.tsx +++ b/public/app/features/dashboard/components/PanelEditor/PanelOptionsTab.tsx @@ -96,49 +96,50 @@ export const PanelOptionsTab: FC = ({ } elements.push( - <> - - onPanelConfigChange('links', links)} - suggestions={linkVariablesSuggestions} - data={[]} - /> - - - + onPanelConfigChange('links', links)} + suggestions={linkVariablesSuggestions} + data={[]} + /> + + ); + + elements.push( + + - onPanelConfigChange('repeat', value.value)} + options={variableOptions} + /> + + {panel.repeat && ( + + onPanelConfigChange('repeatDirection', value)} /> - {panel.repeat && ( - - onPanelConfigChange('repeatDirection', value)} - /> - - )} + )} - {panel.repeat && panel.repeatDirection === 'h' && ( - - onPanelConfigChange('maxPerRow', value.value)} + /> + + )} + ); return <>{elements}; diff --git a/public/app/plugins/panel/table2/TablePanel.tsx b/public/app/plugins/panel/table2/TablePanel.tsx index ea01b9c772d..981b6073f6f 100644 --- a/public/app/plugins/panel/table2/TablePanel.tsx +++ b/public/app/plugins/panel/table2/TablePanel.tsx @@ -20,6 +20,6 @@ export class TablePanel extends Component { return
No Table Data...
; } - return ; + return
; } } diff --git a/public/app/plugins/panel/table2/module.tsx b/public/app/plugins/panel/table2/module.tsx index 5fb17e3108e..6e21fbaac8a 100644 --- a/public/app/plugins/panel/table2/module.tsx +++ b/public/app/plugins/panel/table2/module.tsx @@ -15,7 +15,6 @@ export const plugin = new PanelPlugin(TablePanel) min: 20, max: 300, }, - defaultValue: 1, }) .addSelect({ id: 'displayMode',