Skip to content

Commit

Permalink
improved: warning message before setting the history note (closes #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
alondmnt committed Jun 7, 2023
1 parent baa3acc commit e056442
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions 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-history-panel",
"version": "1.0.1",
"version": "1.0.2",
"scripts": {
"dist": "webpack --joplin-plugin-config buildMain && webpack --joplin-plugin-config buildExtraScripts && webpack --joplin-plugin-config createArchive",
"prepare": "npm run dist",
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ joplin.plugins.register({
iconName: 'far fa-hourglass',
execute: async () => {
const note = await joplin.workspace.selectedNote();
const choice = await joplin.views.dialogs.showMessageBox(
`This will set the current note "${note.title}" as the history note, where your logs will be written to. Continue?`);
if (choice != 0) { return; }
await joplin.settings.setValue('histNoteId', note.id);
updateHistView(panel, settings, false);
},
Expand Down
4 changes: 2 additions & 2 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"manifest_version": 1,
"id": "joplin.plugin.alondmnt.history-panel",
"app_min_version": "2.6",
"version": "1.0.1",
"version": "1.0.2",
"name": "History Panel",
"description": "Joplin note browsing history",
"author": "alondmnt",
"author": "Alon Diament",
"homepage_url": "https://github.com/alondmnt/joplin-plugin-history-panel#readme",
"repository_url": "https://github.com/alondmnt/joplin-plugin-history-panel",
"keywords": []
Expand Down

0 comments on commit e056442

Please sign in to comment.