From ee63074891ca03747e8928734296fcd6f86ca0a2 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 3 Feb 2015 13:55:15 -0500 Subject: [PATCH] clean up sync temp files when canceling jobs --- dashboard-ui/scripts/syncactivity.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/dashboard-ui/scripts/syncactivity.js b/dashboard-ui/scripts/syncactivity.js index 00f2c6bbde..0ba1c33053 100644 --- a/dashboard-ui/scripts/syncactivity.js +++ b/dashboard-ui/scripts/syncactivity.js @@ -80,12 +80,26 @@ html += ""; + var opacity = '.85'; + var background = 'rgba(204,51,51,' + opacity + ')'; + var text = Globalize.translate('SyncJobStatus' + job.Status); + if (job.Status == 'Completed') { - html += '
'; + background = 'rgba(82, 181, 75, ' + opacity + ')'; } else if (job.Status == 'CompletedWithError') { - html += '
'; + } + else if (job.Status == 'Queued') { + background = 'rgba(51, 136, 204, ' + opacity + ')'; + } + else if (job.Status == 'InProgress') { + background = 'rgba(72, 0, 255, ' + opacity + ')'; + } + + html += '
'; + html += text; + html += '
'; // cardContent html += "";