All Downloads are FREE. Search and download functionalities are using the official Maven repository.

components.index_patterns._ensure_some.js Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
define(['require','errors'],function (require) {
  return function EnsureSomeIndexPatternsFn(Private, Notifier, $location, kbnUrl) {
    var errors = require('errors');
    var notify = new Notifier();

    return function ensureSomeIndexPatterns() {
      return function promiseHandler(patterns) {
        if (!patterns || patterns.length === 0) {
          // notify.warning(new errors.NoDefinedIndexPatterns());
          kbnUrl.redirectPath('/settings/indices');
        }

        return patterns;
      };
    };
  };
});




© 2015 - 2025 Weber Informatics LLC | Privacy Policy