Skip to content

Commit

Permalink
using --dev flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Oct 29, 2016
1 parent 268fdb5 commit d1c6ce4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
Expand Down
4 changes: 3 additions & 1 deletion src/ui/public/chrome/api/__tests__/angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
});
Expand Down
3 changes: 1 addition & 2 deletions src/ui/public/chrome/api/angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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);
}
}])
Expand Down
1 change: 1 addition & 0 deletions src/ui/public/chrome/chrome.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const internals = _.defaults(
rootTemplate: null,
showAppsLink: null,
xsrfToken: null,
devMode: true,
brand: null,
nav: [],
applicationClasses: []
Expand Down

0 comments on commit d1c6ce4

Please sign in to comment.