Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit 223cd17

Browse files
committed
Adjust tooltip texts
1 parent 60683a5 commit 223cd17

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

src/configuration/GeneralSettings.tsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { FormEvent, MouseEvent } from 'react';
22
import { Button, InlineField, Input } from '@grafana/ui';
3-
import { OptionsChange } from 'types';
3+
import { OptionsChange, SecureSynchronizeOptions } from 'types';
44

55
export const GeneralSettings: React.FC<OptionsChange> = ({ options, onChange }) => {
66
const hasToken = options.secureJsonFields?.grafanaApiToken;
@@ -16,7 +16,7 @@ export const GeneralSettings: React.FC<OptionsChange> = ({ options, onChange })
1616
};
1717

1818
const onTokenChangeFactory = () => (event: FormEvent<HTMLInputElement>) => {
19-
const newSecureJsonData = { ...options.secureJsonData };
19+
const newSecureJsonData: SecureSynchronizeOptions = { ...options.secureJsonData };
2020
newSecureJsonData.grafanaApiToken = event.currentTarget.value;
2121

2222
onChange({
@@ -39,7 +39,16 @@ export const GeneralSettings: React.FC<OptionsChange> = ({ options, onChange })
3939
<div className="gf-form-group">
4040
<h3 className="page-heading">General</h3>
4141

42-
<InlineField label="Grafana URL" labelWidth={20} tooltip="The URL to access the local Grafana instance.">
42+
<InlineField
43+
label="Grafana URL"
44+
labelWidth={20}
45+
tooltip={
46+
<>
47+
The URL where the data source can reach the API of the local Grafana instance. In most cases this will be{' '}
48+
<code>http://localhost:3000</code>.
49+
</>
50+
}
51+
>
4352
<Input
4453
className="width-20"
4554
placeholder="http://localhost:3000/"

src/configuration/GitSettings.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { FormEvent, MouseEvent } from 'react';
22
import { Button, InlineField, Input, TextArea } from '@grafana/ui';
3-
import { OptionsChange } from 'types';
3+
import { OptionsChange, SecureSynchronizeOptions } from 'types';
44

55
export const GitSettings: React.FC<OptionsChange> = ({ options, onChange }) => {
66
const hasSshKey = !!options.secureJsonFields?.privateSshKey;
@@ -16,7 +16,7 @@ export const GitSettings: React.FC<OptionsChange> = ({ options, onChange }) => {
1616
};
1717

1818
const onKeyChangeFactory = () => (event: FormEvent<HTMLTextAreaElement>) => {
19-
const newSecureJsonData = { ...options.secureJsonData };
19+
const newSecureJsonData: SecureSynchronizeOptions = { ...options.secureJsonData };
2020
newSecureJsonData.privateSshKey = event.currentTarget.value;
2121

2222
onChange({

src/configuration/PushSettings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const PushSettings: React.FC<OptionsChange> = ({ options, onChange }) =>
4040
<InlineField
4141
label="Selector-Tag"
4242
labelWidth={20}
43-
tooltip="Defines a pattern (regular expression) for a tag to match in order to synchronize the associated dashboard."
43+
tooltip="Defines the tag to match in order to synchronize the associated dashboard."
4444
>
4545
<Input
4646
className="width-20"

0 commit comments

Comments
 (0)