Merge pull request #2082 from lukasolson/issue-2073

Allow access to about page even with no index patterns
This commit is contained in:
Rashid Khan 2014-12-03 15:13:57 -07:00
commit c23ee14905

View file

@ -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')) {