This commit is contained in:
parent
2699634e0f
commit
d48fdbf2e5
13 changed files with 217 additions and 10 deletions
6
src/game/90-actions/45-pni-list.js
Normal file
6
src/game/90-actions/45-pni-list.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
// The PNI list's filter, sort and folded groups (#175, #172): view state only, never saved.
|
||||
Object.assign(ACT,{
|
||||
pniFilter:({f})=>{UI.pniF=['all','t','worth','pni'].includes(f)?f:'all';listReset('pni');renderPanel();},
|
||||
pniGrp:({g,o})=>{if(!PNI_GRP.includes(g))return;UI.pniOpen=UI.pniOpen||{};UI.pniOpen[g]=!!o;renderPanel();},
|
||||
pniSort:()=>{UI.pniSort=UI.pniSort==='az'?'worth':'az';renderPanel();},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue