diff --git a/src/components/LinkItems/Section.vue b/src/components/LinkItems/Section.vue index 742ed1c1..aee4418a 100644 --- a/src/components/LinkItems/Section.vue +++ b/src/components/LinkItems/Section.vue @@ -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; diff --git a/user-data/conf.yml b/user-data/conf.yml index ccd8bedf..6fead784 100644 --- a/user-data/conf.yml +++ b/user-data/conf.yml @@ -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