You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
17 lines
402 B
TypeScript
17 lines
402 B
TypeScript
import { CommandRuntime, CommandDeclaration, CommandContext } from '@joplin/lib/services/CommandService';
|
|
|
|
export const declaration: CommandDeclaration = {
|
|
name: 'dismissPluginPanels',
|
|
};
|
|
|
|
export const runtime = (): CommandRuntime => {
|
|
return {
|
|
execute: async (context: CommandContext) => {
|
|
context.dispatch({
|
|
type: 'SET_PLUGIN_PANELS_DIALOG_VISIBLE',
|
|
visible: false,
|
|
});
|
|
},
|
|
};
|
|
};
|