Merge pull request #2082 from lukasolson/issue-2073
Allow access to about page even with no index patterns
This commit is contained in:
commit
c23ee14905
|
@ -16,7 +16,12 @@ define(function (require) {
|
|||
$rootScope.kibana.ready
|
||||
])
|
||||
.then(function () {
|
||||
if (!$route.current.$$route.originalPath.match(/settings\/indices/)) {
|
||||
var path = $route.current.$$route.originalPath;
|
||||
var allowedRoutes = [
|
||||
'/settings/indices/',
|
||||
'/settings/about'
|
||||
];
|
||||
if (allowedRoutes.indexOf(path) < 0) {
|
||||
return courier.indexPatterns.getIds()
|
||||
.then(function (patterns) {
|
||||
if (!config.get('defaultIndex')) {
|
||||
|
|
Loading…
Reference in a new issue