From 78aa421f89450643d2af243a66b87e645b9a2698 Mon Sep 17 00:00:00 2001 From: Sylvain Chateau Date: Sat, 25 Jun 2022 12:00:10 +0200 Subject: [PATCH] add condition to show completed date only for archived campaign --- static/js/src/app/campaigns.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/src/app/campaigns.js b/static/js/src/app/campaigns.js index f05070f3..c56deda3 100644 --- a/static/js/src/app/campaigns.js +++ b/static/js/src/app/campaigns.js @@ -381,7 +381,6 @@ $(document).ready(function () { var row = [ escapeHtml(campaign.name), moment(campaign.created_date).format('MMMM Do YYYY, h:mm:ss a'), - moment(campaign.completed_date).format('MMMM Do YYYY, h:mm:ss a'), "" + campaign.status + "", "
\ \ @@ -394,6 +393,7 @@ $(document).ready(function () {
" ] if (campaign.status == 'Completed') { + row.splice(2, 0, moment(campaign.completed_date).format('MMMM Do YYYY, h:mm:ss a')); rows['archived'].push(row) } else { rows['active'].push(row)