Removed auto refresh. It polls too frequently and potential fills web server logs too quickly.

This commit is contained in:
chouseknecht
2013-10-17 17:57:50 +00:00
parent 94bb0701fc
commit 1068e190cb
9 changed files with 40 additions and 15 deletions

View File

@@ -82,7 +82,7 @@ function JobsListCtrl ($scope, $rootScope, $location, $log, $routeParams, Rest,
scope.refresh = function() {
scope['jobSearchSpin'] = true;
scope['jobLoading'] = true;
scope['jobLoading'] = false;
Refresh({ scope: scope, set: 'jobs', iterator: 'job', url: scope['current_url'] });
}

View File

@@ -202,7 +202,7 @@ function ProjectsList ($scope, $rootScope, $location, $log, $routeParams, Rest,
scope.refresh = function() {
scope['projectSearchSpin'] = true;
scope['projectLoading'] = true;
scope['projectLoading'] = false;
Refresh({ scope: scope, set: 'projects', iterator: 'project', url: scope['current_url'] });
}

View File

@@ -300,9 +300,13 @@ angular.module('JobFormDefinition', [])
statusActions: {
refresh: {
awRefresh: true,
ngShow: "(status == 'pending' || status == 'waiting' || status == 'running')",
mode: 'all'
dataPlacement: 'top',
icon: "icon-refresh",
mode: 'all',
ngShow: "job_status == 'pending' || job_status == 'waiting' || job_status == 'running'",
'class': 'btn-xs btn-primary',
awToolTip: "Refresh the page",
ngClick: "refresh()"
}
}

View File

@@ -126,8 +126,12 @@ angular.module('InventorySummaryDefinition', [])
id: "inventory-summary-help"
},
refresh: {
awRefresh: true,
mode: 'all'
dataPlacement: 'top',
icon: "icon-refresh",
mode: 'all',
'class': 'btn-xs btn-primary',
awToolTip: "Refresh the page",
ngClick: "refresh()"
}
},

View File

@@ -86,9 +86,13 @@ angular.module('JobEventsListDefinition', [])
actions: {
refresh: {
awRefresh: true,
dataPlacement: 'top',
icon: "icon-refresh",
mode: 'all',
ngShow: "job_status == 'pending' || job_status == 'waiting' || job_status == 'running'",
mode: 'all'
'class': 'btn-xs btn-primary',
awToolTip: "Refresh the page",
ngClick: "refresh()"
}
},

View File

@@ -120,9 +120,13 @@ angular.module('JobHostDefinition', [])
iconSize: 'large'
},
refresh: {
awRefresh: true,
dataPlacement: 'top',
icon: "icon-refresh",
mode: 'all',
ngShow: "host_id == null && (job_status == 'pending' || job_status == 'waiting' || job_status == 'running')",
mode: 'all'
'class': 'btn-xs btn-primary',
awToolTip: "Refresh the page",
ngClick: "refresh()"
}
},

View File

@@ -76,8 +76,12 @@ angular.module('JobsListDefinition', [])
actions: {
refresh: {
awRefresh: true,
mode: 'all'
dataPlacement: 'top',
icon: "icon-refresh",
mode: 'all',
'class': 'btn-xs btn-primary',
awToolTip: "Refresh the page",
ngClick: "refresh()"
}
},

View File

@@ -72,8 +72,12 @@ angular.module('ProjectsListDefinition', [])
iconSize: 'large'
},
refresh: {
awRefresh: true,
mode: 'all'
dataPlacement: 'top',
icon: "icon-refresh",
mode: 'all',
'class': 'btn-xs btn-primary',
awToolTip: "Refresh the page",
ngClick: "refresh()"
}
},