You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-12-17 23:27:48 +02:00
21 lines
503 B
TypeScript
21 lines
503 B
TypeScript
|
|
import { CommandRuntime, CommandDeclaration, CommandContext } from '@joplin/lib/services/CommandService';
|
||
|
|
import { _ } from '@joplin/lib/locale';
|
||
|
|
|
||
|
|
export const declaration: CommandDeclaration = {
|
||
|
|
name: 'showProfileEditor',
|
||
|
|
label: () => _('Manage profiles'),
|
||
|
|
};
|
||
|
|
|
||
|
|
export const runtime = (): CommandRuntime => {
|
||
|
|
return {
|
||
|
|
execute: async (context: CommandContext) => {
|
||
|
|
context.dispatch({
|
||
|
|
type: 'NAV_GO',
|
||
|
|
routeName: 'ProfileEditor',
|
||
|
|
});
|
||
|
|
},
|
||
|
|
enabledCondition: 'hasMultiProfiles',
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|