mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
Removed auto refresh. It polls too frequently and potential fills web server logs too quickly.
This commit is contained in:
@@ -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'] });
|
||||
}
|
||||
|
||||
|
||||
@@ -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'] });
|
||||
}
|
||||
|
||||
|
||||
@@ -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()"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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()"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -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()"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -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()"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -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()"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -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()"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -632,6 +632,7 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'ngCookies'])
|
||||
html += buildId(field, fld, this.form);
|
||||
html += (options.mode == 'edit' && field.editRequired) ? "required " : "";
|
||||
html += (options.mode == 'add' && field.addRequired) ? "required " : "";
|
||||
html += (field.multiSelect) ? "multiple " : "";
|
||||
html += (field.readonly) ? "readonly " : "";
|
||||
html += (field.awRequiredWhen) ? "data-awrequired-init=\"" + field.awRequiredWhen.init + "\" aw-required-when=\"" +
|
||||
field.awRequiredWhen.variable + "\" " : "";
|
||||
|
||||
Reference in New Issue
Block a user