make disabled tactics clickable

pull/118/head
Jon Eugster 3 years ago
parent ba7ccf88c3
commit c0b7b7a048

@ -86,7 +86,7 @@ function InventoryItem({name, displayName, locked, disabled, newly, showDoc}) {
disabled ? "Not available in this level" : "" disabled ? "Not available in this level" : ""
const handleClick = () => { const handleClick = () => {
if (!locked && !disabled) { if (!locked) {
showDoc() showDoc()
} }
} }

@ -29,17 +29,20 @@
padding: .1em .5em; padding: .1em .5em;
} }
.inventory .item.locked, .inventory .item.locked {
.inventory .item.disabled {
border: solid 1px #ccc; border: solid 1px #ccc;
color: #ccc; color: #ccc;
} }
.inventory .item.disabled {
color: #d92c2c;
}
.inventory .item.new { .inventory .item.new {
background-color: rgb(255, 242, 190); background-color: rgb(255, 242, 190);
} }
.inventory .item:not(.locked):not(.disabled) { .inventory .item:not(.locked) {
cursor: pointer; cursor: pointer;
} }

Loading…
Cancel
Save