Toolbar title #8452 - showing saved global queries first.

pull/1428/head
Richard 11 years ago
parent 0d1217b297
commit 7135fbb970
  1. 4
      app/assets/javascripts/angular/controllers/work-packages-controller.js

@ -177,8 +177,8 @@ angular.module('openproject.workPackages.controllers')
$scope.availableOptions = QueryService.getAvailableOptions(); // maybe generalize this approach
$scope.$watch('availableOptions.availableGroupedQueries', function(availableQueries) {
if (availableQueries) {
$scope.groups = [{ name: 'CUSTOM QUERIES', models: availableQueries['user_queries']},
{ name: 'GLOBAL QUERIES', models: availableQueries['queries']}];
$scope.groups = [{ name: 'GLOBAL QUERIES', models: availableQueries['queries']},
{ name: 'CUSTOM QUERIES', models: availableQueries['user_queries']}];
}
});
}

Loading…
Cancel
Save