Update burgs-overview.js

Updated the syntax to the one suggested by Azgaar.
This commit is contained in:
Ángel Montero Lamas 2021-12-20 21:15:56 +01:00
parent bad31f0272
commit 19fdc24a95

View file

@ -565,11 +565,13 @@ function overviewBurgs() {
burgsOverviewAddLines();
}
function lockAllBurgs() {
pack.burgs = pack.burgs.map(burg => ({...burg, lock: burg.lock = true}));
pack.burgs.forEach(burg => {
burg.lock = true;});
burgsOverviewAddLines();
}
function unlockAllBurgs() {
pack.burgs = pack.burgs.map(burg => ({...burg, lock: burg.lock = false}));
pack.burgs.forEach(burg => {
burg.lock = false;});
burgsOverviewAddLines();
}
}