New: Show preferred words in release profiles for tag details

This commit is contained in:
Mark McDowall 2021-10-05 12:23:28 -07:00
parent 979219f7df
commit 08359e264c
1 changed files with 17 additions and 0 deletions

View File

@ -141,6 +141,23 @@ function TagDetailsModalContent(props) {
}
</div>
<div>
{
item.preferred.map((i) => {
const isPreferred = i.value >= 0;
return (
<Label
key={i.key}
kind={isPreferred ? kinds.DEFAULT : kinds.WARNING}
>
{i.key} {isPreferred && '+'}{i.value}
</Label>
);
})
}
</div>
<div>
{
item.ignored.map((i) => {