Browse Source

lint fix

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

6
src/plugin_state.ts

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

Loading…
Cancel
Save