Skip to content

Commit

Permalink
0.8.14
Browse files Browse the repository at this point in the history
Fix #114 - missing YAML values
  • Loading branch information
alangrainger committed Aug 2, 2024
1 parent cc6d72b commit a0defc9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "share-note",
"name": "Share Note",
"version": "0.8.13",
"version": "0.8.14",
"minAppVersion": "0.15.0",
"description": "Instantly share a note, with the full theme and content exactly like you see in Reading View. Data is shared encrypted by default, and only you and the person you send it to have the key.",
"author": "Alan Grainger",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "share-note",
"version": "0.8.13",
"version": "0.8.14",
"description": "Instantly share a note, with the full theme and content exactly like you see in Reading View. Data is shared encrypted by default, and only you and the person you send it to have the key.",
"main": "main.js",
"scripts": {
Expand Down
10 changes: 9 additions & 1 deletion src/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,18 @@ export default class Note {
.forEach(propertyContainerEl => {
const propertyName = propertyContainerEl.getAttribute('data-property-key')
if (propertyName) {
console.log(propertyContainerEl)
const nameEl = propertyContainerEl.querySelector('input.metadata-property-key-input')
nameEl?.setAttribute('value', propertyName)
const valueEl = propertyContainerEl.querySelector('div.metadata-property-value > input')
valueEl?.setAttribute('value', this.meta?.frontmatter?.[propertyName] || '')
const value = this.meta?.frontmatter?.[propertyName] || ''
valueEl?.setAttribute('value', value)
// Special cases for different element types
switch (valueEl?.getAttribute('type')) {
case 'checkbox':
if (value) valueEl.setAttribute('checked', 'checked')
break;
}
}
})
}
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@
"0.8.10": "0.15.0",
"0.8.11": "0.15.0",
"0.8.12": "0.15.0",
"0.8.13": "0.15.0"
"0.8.13": "0.15.0",
"0.8.14": "0.15.0"
}

0 comments on commit a0defc9

Please sign in to comment.