зеркало из https://github.com/mozilla/treeherder.git
Bug 1312459 - Disable autoclassify panel by default (#1948)
Adding &autoclassify to the url still allows it to be enabled. This will allow the feature to be refactored rather than spending lots of time investigating sub-issues in the current implementation.
This commit is contained in:
Родитель
f769d2dbbc
Коммит
e720b42af8
|
@ -56,7 +56,6 @@ treeherder.controller('PluginCtrl', [
|
||||||
// phase of this feature.
|
// phase of this feature.
|
||||||
var showAutoClassifyTab = function() {
|
var showAutoClassifyTab = function() {
|
||||||
thTabs.tabs.autoClassification.enabled = ($location.search().autoclassify === true ||
|
thTabs.tabs.autoClassification.enabled = ($location.search().autoclassify === true ||
|
||||||
($rootScope.user && $rootScope.user.is_staff) ||
|
|
||||||
$location.host().indexOf('herokuapp.com') !== -1) &&
|
$location.host().indexOf('herokuapp.com') !== -1) &&
|
||||||
$location.search().noautoclassify !== true;
|
$location.search().noautoclassify !== true;
|
||||||
};
|
};
|
||||||
|
|
Загрузка…
Ссылка в новой задаче