mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
Job detail page
Fixed https://trello.com/c/JW7zmAsD/312-job-detail-duplicate-tasks-listed-when-double-clicking-a-play
This commit is contained in:
parent
e25778d0ed
commit
5bc8255d8f
@ -712,6 +712,7 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge
|
||||
Rest.get()
|
||||
.success(function(data) {
|
||||
scope.next_plays = data.next;
|
||||
scope.plays = [];
|
||||
data.results.forEach(function(event, idx) {
|
||||
var status, status_text, start, end, elapsed;
|
||||
|
||||
@ -801,7 +802,6 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge
|
||||
url, play;
|
||||
|
||||
scope.tasks = [];
|
||||
scope.tasksMap = {};
|
||||
|
||||
if (scope.selectedPlay) {
|
||||
url = scope.job.url + 'job_tasks/?event_id=' + scope.selectedPlay;
|
||||
@ -823,6 +823,7 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge
|
||||
Rest.get()
|
||||
.success(function(data) {
|
||||
scope.next_tasks = data.next;
|
||||
scope.tasks = [];
|
||||
data.results.forEach(function(event, idx) {
|
||||
var end, elapsed, status, status_text;
|
||||
|
||||
@ -948,7 +949,6 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge
|
||||
url;
|
||||
|
||||
scope.hostResults = [];
|
||||
scope.hostResultsMap = {};
|
||||
|
||||
if (scope.selectedTask) {
|
||||
// If we have a selected task, then get the list of hosts
|
||||
@ -961,6 +961,7 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge
|
||||
Rest.get()
|
||||
.success(function(data) {
|
||||
scope.next_host_results = data.next;
|
||||
scope.hostResults = [];
|
||||
data.results.forEach(function(event) {
|
||||
var status, status_text, item, msg;
|
||||
if (event.event === "runner_on_skipped") {
|
||||
@ -1060,6 +1061,7 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge
|
||||
Rest.get()
|
||||
.success(function(data) {
|
||||
scope.next_host_summaries = data.next;
|
||||
scope.hosts = [];
|
||||
data.results.forEach(function(event) {
|
||||
var name;
|
||||
if (event.host_name) {
|
||||
|
@ -7,7 +7,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
@active-color: #c6e5e5;
|
||||
@active-color: #EDF2F2; // #c6e5e5;
|
||||
@black: #171717;
|
||||
@blue: #1778c3; /* logo blue */
|
||||
@blue-link: #1778c3;
|
||||
|
@ -293,7 +293,7 @@
|
||||
border: none;
|
||||
}
|
||||
.active {
|
||||
background-color: #EDF2F2;
|
||||
background-color: @active-color;
|
||||
}
|
||||
.loading-info {
|
||||
padding-top: 5px;
|
||||
|
Loading…
Reference in New Issue
Block a user