Commit 0cf82f45 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

js/segmenter.js: icon info-warning-1 on warned clones

This code should be de-duplicated.
parent d7302896
......@@ -526,7 +526,14 @@ Segment.prototype = {
span_info.onclick = function () {
self.m.displayInfoBox(cloneID);
}
span_info.appendChild(icon('icon-info', 'clone information'))
if (clone.isWarned()) {
span_info.className += " warning" ;
span_info.appendChild(icon('icon-warning-1', 'clone information'));
} else {
span_info.appendChild(icon('icon-info', 'clone information'));
}
// Productive/unproductive
var productive_info = document.createElement('span');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment