1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Merge pull request #2871 from leigh-johnson/2811

Update job list tooltips on status change
This commit is contained in:
Leigh Johnson 2016-07-08 15:25:32 -04:00 committed by GitHub
commit 52cce6424c
2 changed files with 9 additions and 1 deletions

View File

@ -231,6 +231,12 @@ export default
search_params = params.searchParams,
spinner = (params.spinner === undefined) ? true : params.spinner, key;
var buildTooltips = function(data){
data.forEach((val) => {
val.status_tip = 'Job ' + val.status + ". Click for details.";
});
};
GenerateList.inject(list, {
mode: 'edit',
id: id,
@ -260,6 +266,7 @@ export default
scope.$on('PostRefresh', function(){
JobsControllerInit({ scope: scope, parent_scope: parent_scope });
JobsListUpdate({ scope: scope, parent_scope: parent_scope, list: list });
buildTooltips(scope.jobs);
parent_scope.$emit('listLoaded');
});

View File

@ -21,7 +21,8 @@ export default
label: '',
searchLabel: 'Status',
columnClass: 'col-lg-1 col-md-1 col-sm-2 col-xs-2 List-staticColumn--smallStatus',
awToolTip: "Job {{ all_job.status }}. Click for details.",
dataTipWatch: 'all_job.status_tip',
awToolTip: "{{ all_job.status_tip }}",
awTipPlacement: "right",
dataTitle: "{{ all_job.status_popover_title }}",
icon: 'icon-job-{{ all_job.status }}',