mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
LibraryPanels: No save modal when user is on same dashboard (#31606)
This commit is contained in:
@@ -6,17 +6,17 @@ import { getNextRefIdChar } from 'app/core/utils/query';
|
||||
// Types
|
||||
import {
|
||||
DataConfigSource,
|
||||
DataFrameDTO,
|
||||
DataLink,
|
||||
DataLinkBuiltInVars,
|
||||
DataQuery,
|
||||
DataTransformerConfig,
|
||||
EventBus,
|
||||
EventBusSrv,
|
||||
FieldConfigSource,
|
||||
PanelPlugin,
|
||||
ScopedVars,
|
||||
EventBus,
|
||||
EventBusSrv,
|
||||
DataFrameDTO,
|
||||
urlUtil,
|
||||
DataLinkBuiltInVars,
|
||||
} from '@grafana/data';
|
||||
import { EDIT_PANEL_ID } from 'app/core/constants';
|
||||
import config from 'app/core/config';
|
||||
@@ -36,7 +36,7 @@ import {
|
||||
isStandardFieldProp,
|
||||
restoreCustomOverrideRules,
|
||||
} from './getPanelOptionsWithDefaults';
|
||||
import { LibraryPanelDTO } from 'app/features/library-panels/state/api';
|
||||
import { PanelModelLibraryPanel } from '../../library-panels/types';
|
||||
|
||||
export interface GridPos {
|
||||
x: number;
|
||||
@@ -151,7 +151,7 @@ export class PanelModel implements DataConfigSource {
|
||||
links?: DataLink[];
|
||||
transparent: boolean;
|
||||
|
||||
libraryPanel?: { uid: undefined; name: string } | Pick<LibraryPanelDTO, 'uid' | 'name' | 'meta'>;
|
||||
libraryPanel?: { uid: undefined; name: string } | PanelModelLibraryPanel;
|
||||
|
||||
// non persisted
|
||||
isViewing: boolean;
|
||||
|
||||
Reference in New Issue
Block a user