Allow to configure the default index pattern in Advanced Settings (#6453)

* Allow to configure the default index pattern in advanced settings

* Update config name (squash)

* Update config name (squash)
This commit is contained in:
Guillaume Grossetie 2017-01-11 19:05:31 +01:00 committed by Shaunak Kashyap
parent a0364c0ae0
commit ef6734f5cd
2 changed files with 5 additions and 2 deletions

View file

@ -22,8 +22,7 @@ uiModules.get('apps/management')
// this and child scopes will write pattern vars here
const index = $scope.index = {
name: 'logstash-*',
name: config.get('indexPattern:placeholder'),
isTimeBased: true,
nameIsPattern: false,
notExpandable: false,

View file

@ -301,6 +301,10 @@ export default function defaultSettingsProvider() {
description: 'The URL can sometimes grow to be too large for some browsers to ' +
'handle. To counter-act this we are testing if storing parts of the URL in ' +
'sessions storage could help. Please let us know how it goes!'
},
'indexPattern:placeholder': {
value: 'logstash-*',
description: 'The placeholder for the field "Index name or pattern" in the "Settings > Indices" tab.',
}
};
};