refresh button

This commit is contained in:
Mo Bitar
2016-12-29 22:57:46 -06:00
parent 96006e3dca
commit 110dc4e758
9 changed files with 69 additions and 28 deletions

View File

@@ -11,6 +11,7 @@ class ModelManager extends ItemManager {
super.resolveReferences()
this.notes.push.apply(this.notes, _.difference(this.itemsForContentType("Note"), this.notes));
Item.sortItemsByDate(this.notes);
this.notes.forEach(function(note){
note.updateReferencesLocalMapping();
})
@@ -48,7 +49,6 @@ class ModelManager extends ItemManager {
addTag(tag) {
this.tags.unshift(tag);
this.addItem(tag);
console.log("adding tag", tag, "tags", this.tags);
}
addTagToNote(tag, note) {
@@ -84,9 +84,6 @@ class ModelManager extends ItemManager {
this.addDirtyItems(dirty);
}
filteredNotes() {
return Note.filterDummyNotes(this.notes);
}
}
angular.module('app.frontend').service('modelManager', ModelManager);