You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Desktop: Fixed toggleNoteList and toggleSidebar commands
This commit is contained in:
@ -4,7 +4,7 @@ import { _ } from 'lib/locale';
|
|||||||
export const declaration:CommandDeclaration = {
|
export const declaration:CommandDeclaration = {
|
||||||
name: 'toggleNoteList',
|
name: 'toggleNoteList',
|
||||||
label: () => _('Toggle note list'),
|
label: () => _('Toggle note list'),
|
||||||
iconName: 'fa-align-justify',
|
iconName: 'fas fa-align-justify',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const runtime = (comp:any):CommandRuntime => {
|
export const runtime = (comp:any):CommandRuntime => {
|
||||||
@ -14,8 +14,5 @@ export const runtime = (comp:any):CommandRuntime => {
|
|||||||
type: 'NOTELIST_VISIBILITY_TOGGLE',
|
type: 'NOTELIST_VISIBILITY_TOGGLE',
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
title: () => {
|
|
||||||
return _('Toggle note list');
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -4,7 +4,7 @@ import { _ } from 'lib/locale';
|
|||||||
export const declaration:CommandDeclaration = {
|
export const declaration:CommandDeclaration = {
|
||||||
name: 'toggleSidebar',
|
name: 'toggleSidebar',
|
||||||
label: () => _('Toggle sidebar'),
|
label: () => _('Toggle sidebar'),
|
||||||
iconName: 'fa-bars',
|
iconName: 'fas fa-bars',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const runtime = (comp:any):CommandRuntime => {
|
export const runtime = (comp:any):CommandRuntime => {
|
||||||
@ -14,8 +14,5 @@ export const runtime = (comp:any):CommandRuntime => {
|
|||||||
type: 'SIDEBAR_VISIBILITY_TOGGLE',
|
type: 'SIDEBAR_VISIBILITY_TOGGLE',
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
title: () => {
|
|
||||||
return _('Toggle sidebar');
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user