logs
This commit is contained in:
@@ -30,7 +30,7 @@ angular.module('app.frontend')
|
||||
for(var tag of tags) {
|
||||
modelManager.createRelationshipBetweenItems(note, tag);
|
||||
}
|
||||
console.log("updating tags for note", note, tags);
|
||||
|
||||
apiController.sync();
|
||||
}
|
||||
|
||||
|
||||
@@ -33,10 +33,8 @@ class ModelManager {
|
||||
}
|
||||
|
||||
findOrCreateTagByTitle(title) {
|
||||
console.log("looking for tag", title);
|
||||
var tag = _.find(this.tags, {title: title})
|
||||
if(!tag) {
|
||||
console.log("not found, creating");
|
||||
tag = this.createItem({content_type: "Tag", title: title});
|
||||
this.addItem(tag);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user