mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-06 08:34:14 +01:00
🐛 bugfix in matching logic
This commit is contained in:
parent
8523c6e03b
commit
1e5e3e6245
2 changed files with 5 additions and 2 deletions
|
|
@ -336,7 +336,7 @@ export default {
|
|||
const map = JSON.parse(sessionStorage.getItem(SECRET_UNLOCKED_KEY) || '{}');
|
||||
map[id] = pin;
|
||||
sessionStorage.setItem(SECRET_UNLOCKED_KEY, JSON.stringify(map));
|
||||
const unlockPins = JSON.parse(sessionStorage.getItem(SECRET_UNLOCKED_KEY) || '{}');
|
||||
const unlockPins = JSON.parse(sessionStorage.getItem(SECRET_PINS_KEY) || '{}');
|
||||
const sectionKey = this.sectionRef;
|
||||
const savedPin = unlockPins[sectionKey];
|
||||
|
||||
|
|
@ -373,7 +373,7 @@ export default {
|
|||
|
||||
const secretPin = String(this.pin || '0000');
|
||||
const sectionKey = this.sectionRef;
|
||||
|
||||
console.log('Section Key', sectionKey, secretPin);
|
||||
const pins = JSON.parse(sessionStorage.getItem(SECRET_PINS_KEY) || '{}');
|
||||
if (pins[sectionKey] !== secretPin) {
|
||||
pins[sectionKey] = secretPin;
|
||||
|
|
|
|||
|
|
@ -17,6 +17,9 @@ appConfig:
|
|||
sections:
|
||||
- name: Getting Started
|
||||
icon: fas fa-rocket
|
||||
pin: 1245
|
||||
displayData:
|
||||
secret: true
|
||||
items:
|
||||
- title: Dashy Live
|
||||
description: Development a project management links for Dashy
|
||||
|
|
|
|||
Loading…
Reference in a new issue