Ordner-Chips standardmäßig eingeklappt – aufgeklappt nur, wenn auf dem Gerät so gewählt (sw CACHE v160)
Some checks failed
Build and push Docker image / build (push) Successful in 16s
Test / test (push) Successful in 11m4s
Test / e2e (push) Failing after 1m32s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mrwnslz 2026-10-26 21:18:32 +01:00
parent d702a27d16
commit 3eca4d8404
2 changed files with 3 additions and 3 deletions

View file

@ -23,14 +23,14 @@
// picked with onPick({lead: id}). active: null = all, '' = without a folder, else a name.
// The folders fold away (a "Ordner" chip), per area (the list's element id), remembered on
// this device; folded, only the folder chosen stays in sight.
// this device; folded, only the folder chosen stays in sight. Folded until opened.
function areaKey(el) {
const owner = el.id ? el : el.parentElement && el.parentElement.closest('[id]');
return 'diora_folders_folded_' + (owner ? owner.id : 'x');
}
function folded(el) {
try { return localStorage.getItem(areaKey(el)) === '1'; } catch (e) { return false; }
try { return localStorage.getItem(areaKey(el)) !== '0'; } catch (e) { return true; }
}
function chips(el, o) {

View file

@ -2,7 +2,7 @@
* diora service worker — caches the app shell for offline use.
*/
const CACHE = 'diora-v159';
const CACHE = 'diora-v160';
const SHELL = [
'/static/css/app.css',
'/static/js/app/01-core.js',