mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
using --dev flag
This commit is contained in:
parent
268fdb5cbe
commit
d1c6ce47ad
4 changed files with 6 additions and 4 deletions
|
@ -69,7 +69,7 @@ export default async (kbnServer, server, config) => {
|
|||
buildSha: config.get('pkg.buildSha'),
|
||||
basePath: config.get('server.basePath'),
|
||||
serverName: config.get('server.name'),
|
||||
envName: config.get('env.name'),
|
||||
devMode: config.get('env.dev'),
|
||||
uiSettings: {
|
||||
defaults: await server.uiSettings().getDefaults(),
|
||||
user: {}
|
||||
|
|
|
@ -10,7 +10,9 @@ describe('Chrome API :: Angular', () => {
|
|||
getInjected: noop,
|
||||
addBasePath: noop
|
||||
};
|
||||
kbnAngular(chrome, {});
|
||||
kbnAngular(chrome, {
|
||||
devMode: true
|
||||
});
|
||||
});
|
||||
it('should return breadcrumbs based on the url', () => {
|
||||
});
|
||||
|
|
3
src/ui/public/chrome/api/angular.js
vendored
3
src/ui/public/chrome/api/angular.js
vendored
|
@ -8,7 +8,6 @@ import { UrlOverflowServiceProvider } from '../../error_url_overflow';
|
|||
const URL_LIMIT_WARN_WITHIN = 1000;
|
||||
|
||||
module.exports = function (chrome, internals) {
|
||||
|
||||
chrome.getFirstPathSegment = _.noop;
|
||||
chrome.getBreadcrumbs = _.noop;
|
||||
|
||||
|
@ -34,7 +33,7 @@ module.exports = function (chrome, internals) {
|
|||
}()))
|
||||
.config(chrome.$setupXsrfRequestInterceptor)
|
||||
.config(['$compileProvider', function ($compileProvider) {
|
||||
if (internals.envName === 'production') {
|
||||
if (!internals.devMode) {
|
||||
$compileProvider.debugInfoEnabled(false);
|
||||
}
|
||||
}])
|
||||
|
|
|
@ -24,6 +24,7 @@ const internals = _.defaults(
|
|||
rootTemplate: null,
|
||||
showAppsLink: null,
|
||||
xsrfToken: null,
|
||||
devMode: true,
|
||||
brand: null,
|
||||
nav: [],
|
||||
applicationClasses: []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue