1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-13 22:12:50 +02:00

Merge branch 'dev' of github.com:laurent22/joplin into dev

This commit is contained in:
Laurent Cozic
2021-01-08 16:32:11 +00:00
3 changed files with 5 additions and 5 deletions

View File

@@ -220,9 +220,8 @@ class FileApiDriverOneDrive {
};
const freshStartDelta = () => {
// Business Accounts are only allowed to make delta requests to the root. For some reason /delta gives an error for personal accounts and :/delta an error for business accounts
const accountProperties = this.api_.accountProperties_;
const url = (accountProperties.accountType === 'business') ? `/drives/${accountProperties.driveId}/root/delta` : `${this.makePath_(path)}:/delta`;
const url = `/drives/${accountProperties.driveId}/root/delta`;
const query = this.itemFilter_();
query.select += ',deleted';
return { url: url, query: query };

View File

@@ -2,6 +2,7 @@ import joplin from 'api';
joplin.plugins.register({
onStart: async function() {
console.info('Test plugin started!');
await joplin.views.toolbarButtons.create('toggleSideBarButton', 'toggleSideBar', 'noteToolbar');
await joplin.views.toolbarButtons.create('toggleNoteListButton', 'toggleNoteList', 'noteToolbar');
},
});

View File

@@ -2,10 +2,10 @@
"manifest_version": 1,
"id": "org.joplinapp.plugins.ToggleSideBars",
"app_min_version": "1.6",
"version": "1.0.0",
"version": "1.0.1",
"name": "Note list and side bar toggle buttons",
"description": "Adds buttons to toggle note list and side bar",
"author": "Laurent Cozic",
"homepage_url": "https://github.com/laurent22/joplin/tree/dev/packages/plugins/ToggleSideBars",
"repository_url": "https://github.com/laurent22/joplin/tree/dev/packages/plugins/ToggleSideBars"
}
}