mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-21 09:38:01 +02:00
c758377188
Also improved SCSS support, which was needed for the master password dialog.
21 lines
531 B
TypeScript
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,
|
|
});
|
|
},
|
|
};
|
|
};
|