projectblock.ui.js 495 B

123456789101112
  1. window.onRenderProjectNameCell = function(result, info)
  2. {
  3. if(info.col.name === 'name' && info.row.data.delay > 0)
  4. {
  5. const html = {html : '<span class="label size-sm danger-pale circle flex-none nowrap">' + delayInfo.replace('%s', info.row.data.delay) + '</span>', className : 'flex items-end', style : {flexDirection : "column"}};
  6. result.push(html);
  7. }
  8. if(info.col.name === 'end' && info.row.data.end == LONG_TIME) result[0] = longTimeText;
  9. return result;
  10. }