Fix editor associate-item response to check for content type

This commit is contained in:
Mo Bitar
2017-08-22 17:09:37 -05:00
parent 1b79ca2ae3
commit bbc55d5444

View File

@@ -109,9 +109,11 @@ angular.module('app.frontend')
} }
else if(action === "associate-item") { else if(action === "associate-item") {
if(data.item.content_type == "Tag") {
var tag = modelManager.findItem(data.item.uuid); var tag = modelManager.findItem(data.item.uuid);
this.addTag(tag); this.addTag(tag);
} }
}
else if(action === "deassociate-item") { else if(action === "deassociate-item") {
var tag = modelManager.findItem(data.item.uuid); var tag = modelManager.findItem(data.item.uuid);