Skip to content

[tribe] Disable dev tools on the client when tribe is enabled#9375

Merged
tylersmalley merged 3 commits intoelastic:tribe-node-supportfrom
jbudz:tribe-disable-devtools
Dec 6, 2016
Merged

[tribe] Disable dev tools on the client when tribe is enabled#9375
tylersmalley merged 3 commits intoelastic:tribe-node-supportfrom
jbudz:tribe-disable-devtools

Conversation

@jbudz
Copy link
Contributor

@jbudz jbudz commented Dec 5, 2016

This disables dev tools on the client when connecting to a tribe node. Part of #9132

modules.get('kibana').run(Notifier.pullMessageFromUrl);

modules.get('kibana').run(function ($rootScope, $location) {
if (!chrome.getInjected('tribeEnabled')) return;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the styleguide, we should use braces around the conditional

navLink.disabled = true;
navLink.tooltip = 'Dev Tools are disabled when using tribe nodes';
$rootScope.$on('$locationChangeStart', function (event, newUrl) {
if (~newUrl.indexOf(navLink.url)) $location.path('/').replace();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

@tylersmalley tylersmalley merged commit ef5ce42 into elastic:tribe-node-support Dec 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants