From 224798351e7ec926d1648d7973bf8ebd4be7e915 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Thu, 6 Aug 2015 14:06:48 -0400 Subject: [PATCH] don't display download button unless job is completed --- awx/ui/client/src/helpers/LogViewer.js | 2 +- awx/ui/client/src/partials/job_stdout.html | 4 +++- awx/ui/client/src/partials/job_stdout_adhoc.html | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/awx/ui/client/src/helpers/LogViewer.js b/awx/ui/client/src/helpers/LogViewer.js index 90d63034e1..e098e782dd 100644 --- a/awx/ui/client/src/helpers/LogViewer.js +++ b/awx/ui/client/src/helpers/LogViewer.js @@ -365,7 +365,7 @@ export default val = params.val, html = ""; if (params.standardOut) { - html += 'Download'; + html += 'Download'; } html += "
" + val + "
\n"; $('#' + id).empty().html(html); diff --git a/awx/ui/client/src/partials/job_stdout.html b/awx/ui/client/src/partials/job_stdout.html index a02a9d8888..8c113d908c 100644 --- a/awx/ui/client/src/partials/job_stdout.html +++ b/awx/ui/client/src/partials/job_stdout.html @@ -22,7 +22,9 @@

Standard Output - Download + + Download +

diff --git a/awx/ui/client/src/partials/job_stdout_adhoc.html b/awx/ui/client/src/partials/job_stdout_adhoc.html index 72e3d8dbc4..3dcac4097e 100644 --- a/awx/ui/client/src/partials/job_stdout_adhoc.html +++ b/awx/ui/client/src/partials/job_stdout_adhoc.html @@ -160,7 +160,7 @@

Standard Output - Download + Download