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:
jgraham 2016-10-24 18:50:47 +01:00 коммит произвёл GitHub
Родитель f769d2dbbc
Коммит e720b42af8
1 изменённых файлов: 0 добавлений и 1 удалений

Просмотреть файл

@ -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;
}; };