You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
Desktop: Added support for templates (#1647)
* First pass of adding support for templates * remove default value from template prompt * Add template placeholder text * Add mustache templates with datetime support for new notes * Moved template code to utils, added separate prompt for templates * Add templates to menu and allow for keyboad only use * update template prompt for dark theme * update with laurents suggestions, add refresh button * revert template command, remove new note prompt
This commit is contained in:
committed by
Laurent Cozic
parent
e29fb3eb66
commit
cd5d412c69
@ -33,6 +33,7 @@ const defaultState = {
|
||||
hasDisabledSyncItems: false,
|
||||
newNote: null,
|
||||
customCss: '',
|
||||
templates: [],
|
||||
collapsedFolderIds: [],
|
||||
clipperServer: {
|
||||
startState: 'idle',
|
||||
@ -713,6 +714,12 @@ const reducer = (state = defaultState, action) => {
|
||||
newState = Object.assign({}, state);
|
||||
newState.customCss = action.css;
|
||||
break;
|
||||
|
||||
case 'TEMPLATE_UPDATE_ALL':
|
||||
|
||||
newState = Object.assign({}, state);
|
||||
newState.templates = action.templates;
|
||||
break;
|
||||
|
||||
case 'SET_NOTE_TAGS':
|
||||
newState = Object.assign({}, state);
|
||||
|
Reference in New Issue
Block a user