LibraryPanels: No save modal when user is on same dashboard (#31606)

This commit is contained in:
Hugo Häggmark
2021-03-02 16:37:36 +01:00
committed by GitHub
parent a8bf1d68e3
commit d306f417d3
12 changed files with 165 additions and 93 deletions

View File

@@ -5,7 +5,8 @@ import { css } from 'emotion';
import { useAsync, useDebounce } from 'react-use';
import { getBackendSrv } from 'app/core/services/backend_srv';
import { usePanelSave } from '../../utils/usePanelSave';
import { getLibraryPanelConnectedDashboards, PanelModelWithLibraryPanel } from '../../state/api';
import { getLibraryPanelConnectedDashboards } from '../../state/api';
import { PanelModelWithLibraryPanel } from '../../types';
interface Props {
panel: PanelModelWithLibraryPanel;