1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-30 10:36:35 +02:00
joplin/packages/lib/commands/openMasterPasswordDialog.ts
Laurent c758377188
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.
2021-10-03 16:00:49 +01:00

21 lines
531 B
TypeScript

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,
});
},
};
};