From e3aaee738a13750c975d1c593a9e905f8af18426 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sun, 12 Jul 2020 17:27:56 +0100 Subject: [PATCH] Desktop: Fixes #3482: Fixed regression when moving note to notebook from menu --- ElectronClient/gui/MainScreen/commands/moveToFolder.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ElectronClient/gui/MainScreen/commands/moveToFolder.ts b/ElectronClient/gui/MainScreen/commands/moveToFolder.ts index 55fdf4210..636883e24 100644 --- a/ElectronClient/gui/MainScreen/commands/moveToFolder.ts +++ b/ElectronClient/gui/MainScreen/commands/moveToFolder.ts @@ -42,5 +42,13 @@ export const runtime = (comp:any):CommandRuntime => { }, }); }, + isEnabled: (props:any):boolean => { + return !!props.noteIds.length; + }, + mapStateToProps: (state:any):any => { + return { + noteIds: state.selectedNoteIds, + }; + }, }; };