Fix editor associate-item response to check for content type
This commit is contained in:
@@ -109,8 +109,10 @@ angular.module('app.frontend')
|
|||||||
}
|
}
|
||||||
|
|
||||||
else if(action === "associate-item") {
|
else if(action === "associate-item") {
|
||||||
var tag = modelManager.findItem(data.item.uuid);
|
if(data.item.content_type == "Tag") {
|
||||||
this.addTag(tag);
|
var tag = modelManager.findItem(data.item.uuid);
|
||||||
|
this.addTag(tag);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else if(action === "deassociate-item") {
|
else if(action === "deassociate-item") {
|
||||||
|
|||||||
Reference in New Issue
Block a user