mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Elastic: Fixes config UI issues (#29608)
* Elastic: Fixes config UI issues * Fixed index name input issue
This commit is contained in:
@@ -92,6 +92,7 @@ export const DataLink = (props: Props) => {
|
|||||||
|
|
||||||
<div className={styles.row}>
|
<div className={styles.row}>
|
||||||
<Switch
|
<Switch
|
||||||
|
labelClass={'width-6'}
|
||||||
label="Internal link"
|
label="Internal link"
|
||||||
checked={showInternalLink}
|
checked={showInternalLink}
|
||||||
onChange={() => {
|
onChange={() => {
|
||||||
|
|||||||
@@ -32,9 +32,9 @@ export const DataLinks = (props: Props) => {
|
|||||||
Add links to existing fields. Links will be shown in log row details next to the field value.
|
Add links to existing fields. Links will be shown in log row details next to the field value.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{value && value.length > 0 && (
|
||||||
<div className="gf-form-group">
|
<div className="gf-form-group">
|
||||||
{value &&
|
{value.map((field, index) => {
|
||||||
value.map((field, index) => {
|
|
||||||
return (
|
return (
|
||||||
<DataLink
|
<DataLink
|
||||||
className={styles.dataLink}
|
className={styles.dataLink}
|
||||||
@@ -61,7 +61,9 @@ export const DataLinks = (props: Props) => {
|
|||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
<div>
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
variant={'secondary'}
|
variant={'secondary'}
|
||||||
className={css`
|
className={css`
|
||||||
@@ -76,8 +78,6 @@ export const DataLinks = (props: Props) => {
|
|||||||
>
|
>
|
||||||
Add
|
Add
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export const ElasticDetails = (props: Props) => {
|
|||||||
|
|
||||||
<div className="gf-form-group">
|
<div className="gf-form-group">
|
||||||
<div className="gf-form-inline">
|
<div className="gf-form-inline">
|
||||||
<div className="gf-form max-width-25">
|
<div className="gf-form">
|
||||||
<FormField
|
<FormField
|
||||||
labelWidth={10}
|
labelWidth={10}
|
||||||
inputWidth={15}
|
inputWidth={15}
|
||||||
@@ -46,7 +46,7 @@ export const ElasticDetails = (props: Props) => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="gf-form width-14">
|
<div className="gf-form">
|
||||||
<FormField
|
<FormField
|
||||||
labelWidth={10}
|
labelWidth={10}
|
||||||
label="Pattern"
|
label="Pattern"
|
||||||
@@ -76,7 +76,6 @@ export const ElasticDetails = (props: Props) => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="gf-form">
|
<div className="gf-form">
|
||||||
<span className="gf-form-select-wrapper">
|
|
||||||
<FormField
|
<FormField
|
||||||
labelWidth={10}
|
labelWidth={10}
|
||||||
label="Version"
|
label="Version"
|
||||||
@@ -101,7 +100,6 @@ export const ElasticDetails = (props: Props) => {
|
|||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
{value.jsonData.esVersion >= 56 && (
|
{value.jsonData.esVersion >= 56 && (
|
||||||
<div className="gf-form max-width-30">
|
<div className="gf-form max-width-30">
|
||||||
|
|||||||
Reference in New Issue
Block a user