You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-30 23:44:55 +02:00
All: Add support for public-private key pairs and improved master password support (#5438)
Also improved SCSS support, which was needed for the master password dialog.
This commit is contained in:
20
packages/lib/commands/openMasterPasswordDialog.ts
Normal file
20
packages/lib/commands/openMasterPasswordDialog.ts
Normal file
@ -0,0 +1,20 @@
|
||||
import { CommandRuntime, CommandDeclaration, CommandContext } from '../services/CommandService';
|
||||
import { _ } from '../locale';
|
||||
|
||||
export const declaration: CommandDeclaration = {
|
||||
name: 'openMasterPasswordDialog',
|
||||
label: () => _('Manage master password...'),
|
||||
iconName: 'fas fa-key',
|
||||
};
|
||||
|
||||
export const runtime = (): CommandRuntime => {
|
||||
return {
|
||||
execute: async (context: CommandContext, isOpen: boolean = true) => {
|
||||
context.dispatch({
|
||||
type: 'DIALOG_OPEN',
|
||||
name: 'masterPassword',
|
||||
isOpen: isOpen,
|
||||
});
|
||||
},
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user