Implement comment deletion and loading indicator

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2018-10-05 10:12:15 +02:00
parent e547a5d2b9
commit f5520d3087
6 changed files with 33 additions and 21 deletions

View File

@@ -66,6 +66,14 @@ var CommentModel = OC.Backbone.Model.extend(
};
},
url: function() {
if (typeof this.get('id') !== 'undefined') {
return this.collection.url() + this.get('id');
} else {
return this.collection.url();
}
}
});
export default CommentModel;