feat: snjs with auto integrity resolution (#912)
This commit is contained in:
@@ -381,7 +381,7 @@ export class AppState {
|
||||
}
|
||||
break;
|
||||
case ApplicationEvent.SyncStatusChanged:
|
||||
this.sync.update(this.application.getSyncStatus());
|
||||
this.sync.update(this.application.sync.getSyncStatus());
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -181,7 +181,7 @@ export class NoteTagsState {
|
||||
|
||||
if (activeNote) {
|
||||
await this.application.addTagHierarchyToNote(activeNote, tag);
|
||||
this.application.sync();
|
||||
this.application.sync.sync();
|
||||
this.reloadTags();
|
||||
}
|
||||
}
|
||||
@@ -192,7 +192,7 @@ export class NoteTagsState {
|
||||
await this.application.changeItem(tag.uuid, (mutator) => {
|
||||
mutator.removeItemAsRelationship(activeNote);
|
||||
});
|
||||
this.application.sync();
|
||||
this.application.sync.sync();
|
||||
this.reloadTags();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -265,7 +265,7 @@ export class NotesState {
|
||||
mutate,
|
||||
false
|
||||
);
|
||||
this.application.sync();
|
||||
this.application.sync.sync();
|
||||
}
|
||||
|
||||
setHideSelectedNotePreviews(hide: boolean): void {
|
||||
@@ -403,7 +403,7 @@ export class NotesState {
|
||||
},
|
||||
false
|
||||
);
|
||||
this.application.sync();
|
||||
this.application.sync.sync();
|
||||
}
|
||||
|
||||
async addTagToSelectedNotes(tag: SNTag): Promise<void> {
|
||||
@@ -419,7 +419,7 @@ export class NotesState {
|
||||
});
|
||||
})
|
||||
);
|
||||
this.application.sync();
|
||||
this.application.sync.sync();
|
||||
}
|
||||
|
||||
async removeTagFromSelectedNotes(tag: SNTag): Promise<void> {
|
||||
@@ -429,7 +429,7 @@ export class NotesState {
|
||||
mutator.removeItemAsRelationship(note);
|
||||
}
|
||||
});
|
||||
this.application.sync();
|
||||
this.application.sync.sync();
|
||||
}
|
||||
|
||||
isTagInSelectedNotes(tag: SNTag): boolean {
|
||||
@@ -453,7 +453,7 @@ export class NotesState {
|
||||
})
|
||||
) {
|
||||
this.application.emptyTrash();
|
||||
this.application.sync();
|
||||
this.application.sync.sync();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -208,7 +208,7 @@ export class TagsState {
|
||||
|
||||
this.assignParent(createdTag.uuid, parent.uuid);
|
||||
|
||||
this.application.sync();
|
||||
this.application.sync.sync();
|
||||
|
||||
runInAction(() => {
|
||||
this.selected = createdTag as SNTag;
|
||||
@@ -364,7 +364,7 @@ export class TagsState {
|
||||
await this.application.setTagParent(futureParent, tag);
|
||||
}
|
||||
|
||||
await this.application.sync();
|
||||
await this.application.sync.sync();
|
||||
}
|
||||
|
||||
get rootTags(): SNTag[] {
|
||||
@@ -507,7 +507,7 @@ export class TagsState {
|
||||
}
|
||||
|
||||
const insertedTag = await this.application.createTagOrSmartView(newTitle);
|
||||
this.application.sync();
|
||||
this.application.sync.sync();
|
||||
runInAction(() => {
|
||||
this.selected = insertedTag as SNTag;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user