mirror of
https://github.com/grafana/grafana.git
synced 2025-02-10 23:55:47 -06:00
PanelEdit: Fixes bug with not remembering panel options pane collapse/expand state (#59265)
This commit is contained in:
parent
a8bae3f0b0
commit
d76638338d
@ -193,11 +193,6 @@ export class PanelEditorUnconnected extends PureComponent<Props> {
|
||||
this.props.toggleTableView();
|
||||
};
|
||||
|
||||
onTogglePanelOptions = () => {
|
||||
const { uiState, updatePanelEditorUIState } = this.props;
|
||||
updatePanelEditorUIState({ isPanelOptionsVisible: !uiState.isPanelOptionsVisible });
|
||||
};
|
||||
|
||||
renderPanel(styles: EditorStyles, isOnlyPanel: boolean) {
|
||||
const { dashboard, panel, uiState, tableViewEnabled, theme } = this.props;
|
||||
|
||||
|
@ -8,7 +8,8 @@ import { useDispatch, useSelector } from 'app/types';
|
||||
import { PanelModel } from '../../state';
|
||||
import { getPanelPluginWithFallback } from '../../state/selectors';
|
||||
|
||||
import { setPanelEditorUIState, toggleVizPicker } from './state/reducers';
|
||||
import { updatePanelEditorUIState } from './state/actions';
|
||||
import { toggleVizPicker } from './state/reducers';
|
||||
|
||||
type Props = {
|
||||
panel: PanelModel;
|
||||
@ -25,7 +26,7 @@ export const VisualizationButton = ({ panel }: Props) => {
|
||||
};
|
||||
|
||||
const onToggleOptionsPane = () => {
|
||||
dispatch(setPanelEditorUIState({ isPanelOptionsVisible: !isPanelOptionsVisible }));
|
||||
dispatch(updatePanelEditorUIState({ isPanelOptionsVisible: !isPanelOptionsVisible }));
|
||||
};
|
||||
|
||||
if (!plugin) {
|
||||
|
Loading…
Reference in New Issue
Block a user