Skip to content

Commit

Permalink
Move note note/todo to the bottom of the list
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-r-m committed Apr 25, 2021
1 parent 8caf78c commit b35b5cf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "joplin-plugin-quick-links",
"version": "1.2.0",
"version": "1.2.1",
"scripts": {
"dist": "webpack --joplin-plugin-config buildMain && webpack --joplin-plugin-config buildExtraScripts && webpack --joplin-plugin-config createArchive",
"prepare": "npm run dist",
Expand Down
12 changes: 6 additions & 6 deletions src/QuickLinksPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ module.exports = {

let hints: Hint[] = [];

if(response.allowNewNotes && prefix) {
hints.push(NewNoteHint(prefix, false));
hints.push(NewNoteHint(prefix, true));
}

const notes = response.notes;
for (let i = 0; i < notes.length; i++) {
const note = notes[i];
Expand All @@ -66,7 +61,7 @@ module.exports = {
elem.appendChild(p);
p.innerHTML = `
<div style="display:table-cell; padding-right: 5px">${note.title}</div>
<div style="display:table-cell; text-align: right;"><small><em>In ${note.folder}</em></small></div>
<div style="display:table-cell; text-align: right;"><small><em>In ${folder}</em></small></div>
`
};
} else {
Expand All @@ -75,6 +70,11 @@ module.exports = {
hints.push(hint);
}

if(response.allowNewNotes && prefix) {
hints.push(NewNoteHint(prefix, false));
hints.push(NewNoteHint(prefix, true));
}

return hints;
}

Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 1,
"id": "com.whatever.quick-links",
"app_min_version": "1.7",
"version": "1.2.0",
"version": "1.2.1",
"name": "Quick Links",
"description": "Create links to other notes",
"author": "Roman Musin",
Expand Down

0 comments on commit b35b5cf

Please sign in to comment.