New: Show preferred words in release profiles for tag details
This commit is contained in:
parent
979219f7df
commit
08359e264c
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue