Make conflict_of synced property
This commit is contained in:
@@ -255,7 +255,7 @@ angular.module('app')
|
||||
})
|
||||
}
|
||||
|
||||
if(note.conflict_of) {
|
||||
if(note.content.conflict_of) {
|
||||
flags.push({
|
||||
text: "Conflicted Copy",
|
||||
class: "danger"
|
||||
@@ -327,7 +327,11 @@ angular.module('app')
|
||||
let run = () => {
|
||||
$timeout(() => {
|
||||
this.selectedNote = note;
|
||||
note.conflict_of = null; // clear conflict
|
||||
if(note.content.conflict_of) {
|
||||
note.content.conflict_of = null; // clear conflict
|
||||
note.setDirty(true, true);
|
||||
syncManager.sync();
|
||||
}
|
||||
this.selectionMade()(note);
|
||||
this.selectedIndex = Math.max(this.visibleNotes().indexOf(note), 0);
|
||||
|
||||
|
||||
@@ -107,7 +107,11 @@ angular.module('app')
|
||||
});
|
||||
}
|
||||
this.selectedTag = tag;
|
||||
tag.conflict_of = null; // clear conflict
|
||||
if(tag.content.conflict_of) {
|
||||
tag.content.conflict_of = null; // clear conflict
|
||||
tag.setDirty(true, true);
|
||||
syncManager.sync();
|
||||
}
|
||||
this.selectionMade()(tag);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,11 @@ class EditorMenu {
|
||||
|
||||
$scope.selectComponent = function(component) {
|
||||
if(component) {
|
||||
component.conflict_of = null; // clear conflict if applicable
|
||||
if(component.content.conflict_of) {
|
||||
component.content.conflict_of = null; // clear conflict if applicable
|
||||
component.setDirty(true, true);
|
||||
syncManager.sync();
|
||||
}
|
||||
}
|
||||
$timeout(() => {
|
||||
$scope.callback()(component);
|
||||
|
||||
Reference in New Issue
Block a user