mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
parent
2fe82cfe3b
commit
09e28a97eb
1 changed files with 10 additions and 4 deletions
|
@ -79,13 +79,19 @@ export class ExtendedTemplate extends PureComponent<Props> {
|
|||
}
|
||||
|
||||
const positions = {
|
||||
xaxis: [strings.getPositionBottom(), strings.getPositionTop()],
|
||||
yaxis: [strings.getPositionLeft(), strings.getPositionRight()],
|
||||
xaxis: [
|
||||
{ value: 'bottom', text: strings.getPositionBottom() },
|
||||
{ value: 'top', text: strings.getPositionTop() },
|
||||
],
|
||||
yaxis: [
|
||||
{ value: 'left', text: strings.getPositionLeft() },
|
||||
{ value: 'right', text: strings.getPositionRight() },
|
||||
],
|
||||
};
|
||||
const argName = this.props.typeInstance.name;
|
||||
const position = this.getArgValue('position', positions[argName][0]);
|
||||
const position = this.getArgValue('position', positions[argName][0].value);
|
||||
|
||||
const options = positions[argName].map(val => ({ value: val, text: val }));
|
||||
const options = positions[argName];
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue