mirror of
https://github.com/ansible/awx.git
synced 2026-05-24 00:57:48 -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.refresh = function() {
|
||||||
scope['jobSearchSpin'] = true;
|
scope['jobSearchSpin'] = true;
|
||||||
scope['jobLoading'] = true;
|
scope['jobLoading'] = false;
|
||||||
Refresh({ scope: scope, set: 'jobs', iterator: 'job', url: scope['current_url'] });
|
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.refresh = function() {
|
||||||
scope['projectSearchSpin'] = true;
|
scope['projectSearchSpin'] = true;
|
||||||
scope['projectLoading'] = true;
|
scope['projectLoading'] = false;
|
||||||
Refresh({ scope: scope, set: 'projects', iterator: 'project', url: scope['current_url'] });
|
Refresh({ scope: scope, set: 'projects', iterator: 'project', url: scope['current_url'] });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -300,9 +300,13 @@ angular.module('JobFormDefinition', [])
|
|||||||
|
|
||||||
statusActions: {
|
statusActions: {
|
||||||
refresh: {
|
refresh: {
|
||||||
awRefresh: true,
|
dataPlacement: 'top',
|
||||||
ngShow: "(status == 'pending' || status == 'waiting' || status == 'running')",
|
icon: "icon-refresh",
|
||||||
mode: 'all'
|
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"
|
id: "inventory-summary-help"
|
||||||
},
|
},
|
||||||
refresh: {
|
refresh: {
|
||||||
awRefresh: true,
|
dataPlacement: 'top',
|
||||||
mode: 'all'
|
icon: "icon-refresh",
|
||||||
|
mode: 'all',
|
||||||
|
'class': 'btn-xs btn-primary',
|
||||||
|
awToolTip: "Refresh the page",
|
||||||
|
ngClick: "refresh()"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -86,9 +86,13 @@ angular.module('JobEventsListDefinition', [])
|
|||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
refresh: {
|
refresh: {
|
||||||
awRefresh: true,
|
dataPlacement: 'top',
|
||||||
|
icon: "icon-refresh",
|
||||||
|
mode: 'all',
|
||||||
ngShow: "job_status == 'pending' || job_status == 'waiting' || job_status == 'running'",
|
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'
|
iconSize: 'large'
|
||||||
},
|
},
|
||||||
refresh: {
|
refresh: {
|
||||||
awRefresh: true,
|
dataPlacement: 'top',
|
||||||
|
icon: "icon-refresh",
|
||||||
|
mode: 'all',
|
||||||
ngShow: "host_id == null && (job_status == 'pending' || job_status == 'waiting' || job_status == 'running')",
|
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: {
|
actions: {
|
||||||
refresh: {
|
refresh: {
|
||||||
awRefresh: true,
|
dataPlacement: 'top',
|
||||||
mode: 'all'
|
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'
|
iconSize: 'large'
|
||||||
},
|
},
|
||||||
refresh: {
|
refresh: {
|
||||||
awRefresh: true,
|
dataPlacement: 'top',
|
||||||
mode: 'all'
|
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 += buildId(field, fld, this.form);
|
||||||
html += (options.mode == 'edit' && field.editRequired) ? "required " : "";
|
html += (options.mode == 'edit' && field.editRequired) ? "required " : "";
|
||||||
html += (options.mode == 'add' && field.addRequired) ? "required " : "";
|
html += (options.mode == 'add' && field.addRequired) ? "required " : "";
|
||||||
|
html += (field.multiSelect) ? "multiple " : "";
|
||||||
html += (field.readonly) ? "readonly " : "";
|
html += (field.readonly) ? "readonly " : "";
|
||||||
html += (field.awRequiredWhen) ? "data-awrequired-init=\"" + field.awRequiredWhen.init + "\" aw-required-when=\"" +
|
html += (field.awRequiredWhen) ? "data-awrequired-init=\"" + field.awRequiredWhen.init + "\" aw-required-when=\"" +
|
||||||
field.awRequiredWhen.variable + "\" " : "";
|
field.awRequiredWhen.variable + "\" " : "";
|
||||||
|
|||||||
Reference in New Issue
Block a user