|
@@ -3,7 +3,7 @@ import React, { PureComponent } from 'react';
|
|
|
import cloneDeep from 'lodash/cloneDeep';
|
|
import cloneDeep from 'lodash/cloneDeep';
|
|
|
import extend from 'lodash/extend';
|
|
import extend from 'lodash/extend';
|
|
|
|
|
|
|
|
-import { PluginMeta, AppPlugin, Button } from '@grafana/ui';
|
|
|
|
|
|
|
+import { PluginMeta, AppPlugin, Button, deprecationWarning } from '@grafana/ui';
|
|
|
|
|
|
|
|
import { AngularComponent, getAngularLoader } from '@grafana/runtime';
|
|
import { AngularComponent, getAngularLoader } from '@grafana/runtime';
|
|
|
import { getBackendSrv } from 'app/core/services/backend_srv';
|
|
import { getBackendSrv } from 'app/core/services/backend_srv';
|
|
@@ -124,6 +124,12 @@ export class AppConfigCtrlWrapper extends PureComponent<Props, State> {
|
|
|
this.postUpdateHook = callback;
|
|
this.postUpdateHook = callback;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ // Stub to avoid unknown function in legacy code
|
|
|
|
|
+ importDashboards = (): Promise<void> => {
|
|
|
|
|
+ deprecationWarning('AppConfig', 'importDashboards()');
|
|
|
|
|
+ return Promise.resolve();
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
enable = () => {
|
|
enable = () => {
|
|
|
this.model.enabled = true;
|
|
this.model.enabled = true;
|
|
|
this.model.pinned = true;
|
|
this.model.pinned = true;
|