You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-12 22:57:38 +02:00
Saving/loading notes from Electron
This commit is contained in:
@ -42,7 +42,6 @@ class NoteScreenComponent extends BaseScreenComponent {
|
||||
folder: null,
|
||||
lastSavedNote: null,
|
||||
isLoading: true,
|
||||
resources: {},
|
||||
titleTextInputHeight: 20,
|
||||
};
|
||||
|
||||
@ -137,7 +136,11 @@ class NoteScreenComponent extends BaseScreenComponent {
|
||||
|
||||
await shared.initState(this);
|
||||
|
||||
shared.refreshNoteMetadata(this);
|
||||
this.refreshNoteMetadata();
|
||||
}
|
||||
|
||||
refreshNoteMetadata(force = null) {
|
||||
return shared.refreshNoteMetadata(this, force);
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
|
@ -40,7 +40,7 @@ shared.saveNoteButton_press = async function(comp) {
|
||||
note: note,
|
||||
});
|
||||
if (isNew) Note.updateGeolocation(note.id);
|
||||
shared.refreshNoteMetadata(comp);
|
||||
comp.refreshNoteMetadata();
|
||||
}
|
||||
|
||||
shared.saveOneProperty = async function(comp, name, value) {
|
||||
@ -111,7 +111,7 @@ shared.initState = async function(comp) {
|
||||
|
||||
shared.showMetadata_onPress = function(comp) {
|
||||
comp.setState({ showNoteMetadata: !comp.state.showNoteMetadata });
|
||||
shared.refreshNoteMetadata(comp, true);
|
||||
comp.refreshNoteMetadata(true);
|
||||
}
|
||||
|
||||
shared.toggleIsTodo_onPress = function(comp) {
|
||||
|
Reference in New Issue
Block a user