Maintain job schedule search query params after adding/removing search tags

This commit is contained in:
Michael Abashian
2016-07-18 16:51:05 -04:00
parent 4f89e31af6
commit 95393a6dd8

View File

@@ -20,7 +20,8 @@ export function JobsListController ($rootScope, $log, $scope, $compile, $statePa
var jobs_scope, scheduled_scope, var jobs_scope, scheduled_scope,
choicesCount = 0, choicesCount = 0,
listCount = 0, listCount = 0,
api_complete = false; api_complete = false,
scheduledJobsList = _.cloneDeep(ScheduledJobsList);
$scope.jobsSelected = true; $scope.jobsSelected = true;
@@ -73,13 +74,14 @@ export function JobsListController ($rootScope, $log, $scope, $compile, $statePa
scheduled_scope = $scope.$new(true); scheduled_scope = $scope.$new(true);
scheduledJobsList.basePath = GetBasePath('schedules') + '?next_run__isnull=false';
LoadSchedulesScope({ LoadSchedulesScope({
parent_scope: $scope, parent_scope: $scope,
scope: scheduled_scope, scope: scheduled_scope,
list: ScheduledJobsList, list: scheduledJobsList,
id: 'scheduled-jobs-tab', id: 'scheduled-jobs-tab',
searchSize: 'col-lg-4 col-md-4 col-sm-4 col-xs-12', searchSize: 'col-lg-4 col-md-4 col-sm-4 col-xs-12',
url: GetBasePath('schedules') + '?next_run__isnull=false' url: scheduledJobsList.basePath
}); });
$scope.refreshJobs = function() { $scope.refreshJobs = function() {