-
-
- Organization settings
-
-
-
-
-
- Resolution Note
-
-
-
- {
- organizationStore.saveCurrentOrganization({
- is_resolution_note_required: event.currentTarget.checked,
- });
- }}
- />
-
-
-
- {!isTopNavbar() && (
-
-
- Teams and Access Settings
-
-
-
- )}
-
- API URL
+ return (
+
- );
- }
-}
+
-export const MainSettings = withMobXProviderContext(Settings);
+
+
+ Resolution Note
+
+
+
+ {
+ saveCurrentOrganization({
+ is_resolution_note_required: event.currentTarget.checked,
+ });
+ }}
+ />
+
+
+
+ {!isTopNavbar() && (
+
+
+ Teams and Access Settings
+
+
+
+ )}
+
+ API URL
+
+
+
+
+
+
+
+
+ );
+});
+
+const getStyles = () => ({
+ settings: css`
+ width: fit-content;
+ `,
+ title: css`
+ margin-bottom: 20px;
+ `,
+});
diff --git a/grafana-plugin/src/state/rootBaseStore/RootBaseStore.ts b/grafana-plugin/src/state/rootBaseStore/RootBaseStore.ts
index 826de9af..2839ad30 100644
--- a/grafana-plugin/src/state/rootBaseStore/RootBaseStore.ts
+++ b/grafana-plugin/src/state/rootBaseStore/RootBaseStore.ts
@@ -69,9 +69,6 @@ export class RootBaseStore {
@observable
pageTitle = '';
- @observable
- onCallApiUrl: string;
-
@observable
insightsDatasource = 'grafanacloud-usage';
@@ -186,11 +183,6 @@ export class RootBaseStore {
this.pageTitle = title;
}
- @action.bound
- async getApiUrlForSettings() {
- return this.onCallApiUrl;
- }
-
@action.bound
async loadRecaptcha() {
const { recaptcha_site_key } = await makeRequest<{ recaptcha_site_key: string }>('/plugin/recaptcha');
diff --git a/grafana-plugin/src/types.ts b/grafana-plugin/src/types.ts
index b2d7e0d2..44547883 100644
--- a/grafana-plugin/src/types.ts
+++ b/grafana-plugin/src/types.ts
@@ -1,4 +1,4 @@
-import { AppRootProps as BaseAppRootProps, AppPluginMeta, PluginConfigPageProps, BootData } from '@grafana/data';
+import { AppRootProps as BaseAppRootProps, AppPluginMeta, PluginConfigPageProps } from '@grafana/data';
import { getPluginId } from 'utils/consts';
@@ -30,8 +30,6 @@ export type OnCallPluginExtensionPoints =
declare global {
export interface Window {
- // https://github.com/grafana/grafana/blob/78bef7a26a799209b5307d6bde8e25fcb4fbde7d/public/views/index-template.html#L251-L258
- grafanaBootData?: BootData;
RECAPTCHA_SITE_KEY: string;
grecaptcha: any;
dataLayer: any;