Add NewHiddenTactic command

Fixes #109
This commit is contained in:
Alexander Bentkamp
2023-10-02 12:50:19 +02:00
parent 1d49535fcf
commit 5c919fb983
4 changed files with 24 additions and 5 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ function InventoryList({items, docType, openDoc, defaultTab=null, level=undefine
// For lemas, sort entries `available > disabled > locked`
// otherwise alphabetically
(x, y) => +(docType == "Lemma") * (+x.locked - +y.locked || +x.disabled - +y.disabled)
).filter(item => ((tab ?? categories[0]) == item.category)).map((item, i) => {
).filter(item => !item.hidden && ((tab ?? categories[0]) == item.category)).map((item, i) => {
return <InventoryItem key={`${item.category}-${item.name}`}
showDoc={() => {openDoc({name: item.name, type: docType})}}
name={item.name} displayName={item.displayName} locked={difficulty > 0 ? item.locked : false}