Resource editor - ability to add bonus if no bonuses

This commit is contained in:
Azgaar 2021-05-31 23:17:06 +03:00 committed by Peter
parent 8f8a33f0a4
commit 3b2216f668

View file

@ -660,7 +660,7 @@ function editResources() {
const bonusString = Object.entries(bonusObj).map((e) => e.join(': ')).join('; '); //prettier-ignore
resource.bonus = bonusObj;
el.innerHTML = bonusHTML;
el.innerHTML = bonusHTML || "<span style='opacity:0'>place</span>";
line.dataset.bonus = bonusString;
el.setAttribute('title', bonusString);
}