Browse Source

lint fix

pull/8/head
rozetko 2 years ago
parent
commit
cb64c4894a
  1. 10
      src/plugin_state.ts

10
src/plugin_state.ts

@ -90,9 +90,13 @@ class PluginState {
this.grafanaBackend.get<DataExporterAppPluginMeta>(this.GRAFANA_PLUGIN_SETTINGS_URL); this.grafanaBackend.get<DataExporterAppPluginMeta>(this.GRAFANA_PLUGIN_SETTINGS_URL);
static updateGrafanaPluginSettings = async (data: UpdateGrafanaPluginSettingsProps, enabled = true) => static updateGrafanaPluginSettings = async (data: UpdateGrafanaPluginSettingsProps, enabled = true) =>
// @ts-ignore this.grafanaBackend.post(
// for some reason, there is no `options` argument in Grafana's public types for BackendSrv but it exists this.GRAFANA_PLUGIN_SETTINGS_URL,
this.grafanaBackend.post(this.GRAFANA_PLUGIN_SETTINGS_URL, { ...data, enabled, pinned: true }, { showSuccessAlert: false }); { ...data, enabled, pinned: true },
// @ts-ignore
// for some reason, there is no `options` argument in Grafana's public types for BackendSrv but it exists
{ showSuccessAlert: false }
);
static createGrafanaToken = async () => { static createGrafanaToken = async () => {
const baseUrl = '/api/auth/keys'; const baseUrl = '/api/auth/keys';

Loading…
Cancel
Save