Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Commit

Permalink
Display counts of tags mapped to tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
dpwrussell committed Jan 27, 2016
1 parent 580b3cf commit da1b282
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion autotag/src/AutoTagHeaderRowTokenCell.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ export default class AutoTagHeaderRowTokenCell extends React.Component {
dropDownClassname += " tagInactive";
}

if (token.possible.size > 0) {
tagValue += '\u00a0(' + token.possible.size + ')';
}

let className = '' + token.type + 'Tokens';
let tooltipID = 'tooltip-token-' + token.value;

Expand All @@ -78,7 +82,7 @@ export default class AutoTagHeaderRowTokenCell extends React.Component {
<ReactTooltip id={tooltipID} place="bottom" type="dark" effect="solid">
<ul>
<li><strong>ID:</strong> {tag.id}</li>
<li><strong>Value:</strong> {tagValue}</li>
<li><strong>Value:</strong> {tag.value}</li>
{
tag.description &&
<li><strong>Description:</strong> {tag.description}</li>
Expand Down
6 changes: 5 additions & 1 deletion autotag/static/autotag/js/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -24513,6 +24513,10 @@ var autotagform =
dropDownClassname += " tagInactive";
}

if (token.possible.size > 0) {
tagValue += ' (' + token.possible.size + ')';
}

var className = '' + token.type + 'Tokens';
var tooltipID = 'tooltip-token-' + token.value;

Expand Down Expand Up @@ -24567,7 +24571,7 @@ var autotagform =
'Value:'
),
' ',
tagValue
tag.value
),
tag.description && _react2.default.createElement(
'li',
Expand Down

0 comments on commit da1b282

Please sign in to comment.