Skip to content

Commit 3155fd5

Browse files
committed
Added dialog buttons.
1 parent 828c264 commit 3155fd5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ joplin.plugins.register({
5555
await dialogs.addScript(diffViewDialog, './UI/index.js');
5656
await dialogs.addScript(diffViewDialog, './UI/codemirror/addon/merge/merge.css');
5757
await dialogs.addScript(diffViewDialog, './UI/index.css');
58+
await dialogs.setButtons(diffViewDialog, [
59+
{
60+
id: 'submit',
61+
title: 'Save'
62+
},
63+
{
64+
id: 'cancel',
65+
title: 'Cancel'
66+
}
67+
]);
5868

5969
await joplin.commands.register({
6070
name: 'resolveConflictsCommand',

0 commit comments

Comments
 (0)