Skip to content

Commit

Permalink
different background color when someone ordered in visits log
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur authored Nov 22, 2021
1 parent 8be2ab7 commit 12cac44
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/controllers/visitor_overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ function updateDisplayedValues(visitor)
return;
}

if (visitor.goalConversions) {
if (visitor.visitEcommerceStatus && visitor.visitEcommerceStatus === 'ordered') {
$.index.backgroundColor = '#D5FFC4';
} else if (visitor.goalConversions) {
$.index.backgroundColor = '#FFFFC4';
}

Expand Down Expand Up @@ -130,4 +132,4 @@ function updateDisplayedValues(visitor)
}
}

updateDisplayedValues(visitor);
updateDisplayedValues(visitor);

0 comments on commit 12cac44

Please sign in to comment.