nuxeo-development-framework 0.8.6 → 0.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/nuxeo-development-framework.umd.js +6 -8
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/comments/components/edit-delete-modal/edit-delete-modal.component.js +3 -5
- package/esm2015/lib/components/comments/services/comment-api.service.js +5 -5
- package/fesm2015/nuxeo-development-framework.js +6 -8
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/comments/services/comment-api.service.d.ts +2 -2
- package/package.json +1 -1
|
@@ -17435,9 +17435,9 @@
|
|
|
17435
17435
|
throw err;
|
|
17436
17436
|
}));
|
|
17437
17437
|
};
|
|
17438
|
-
CommentApiService.prototype.deleteComment = function (
|
|
17438
|
+
CommentApiService.prototype.deleteComment = function (prentId, commentId) {
|
|
17439
17439
|
return rxjs.from(this.nuxeoService.nuxeoClient
|
|
17440
|
-
.request("id/" +
|
|
17440
|
+
.request("id/" + prentId + "/@comment/" + commentId)
|
|
17441
17441
|
.headers({
|
|
17442
17442
|
"properties": "*",
|
|
17443
17443
|
})
|
|
@@ -17445,9 +17445,9 @@
|
|
|
17445
17445
|
throw err;
|
|
17446
17446
|
}));
|
|
17447
17447
|
};
|
|
17448
|
-
CommentApiService.prototype.updateDocument = function (comment,
|
|
17448
|
+
CommentApiService.prototype.updateDocument = function (comment, prentId, commentId) {
|
|
17449
17449
|
return rxjs.from(this.nuxeoService.nuxeoClient
|
|
17450
|
-
.request("id/" +
|
|
17450
|
+
.request("id/" + prentId + "/@comment/" + commentId)
|
|
17451
17451
|
.headers({
|
|
17452
17452
|
"properties": "*",
|
|
17453
17453
|
})
|
|
@@ -17487,12 +17487,11 @@
|
|
|
17487
17487
|
};
|
|
17488
17488
|
EditDeleteModalComponent.prototype.delete = function () {
|
|
17489
17489
|
var _this = this;
|
|
17490
|
-
this.commentApi.deleteComment(this.comment.parentId).subscribe(function (res) {
|
|
17490
|
+
this.commentApi.deleteComment(this.comment.parentId, this.comment.id).subscribe(function (res) {
|
|
17491
17491
|
if (res) {
|
|
17492
17492
|
_this.dialogRef.close(true);
|
|
17493
17493
|
}
|
|
17494
17494
|
});
|
|
17495
|
-
this.dialogRef.close(true);
|
|
17496
17495
|
};
|
|
17497
17496
|
EditDeleteModalComponent.prototype.cancel = function () {
|
|
17498
17497
|
this.dialogRef.close(false);
|
|
@@ -17507,12 +17506,11 @@
|
|
|
17507
17506
|
"entity-type": "comment",
|
|
17508
17507
|
"parentId": this.comment.parentId,
|
|
17509
17508
|
};
|
|
17510
|
-
this.commentApi.updateDocument(data, this.comment.parentId).subscribe(function (res) {
|
|
17509
|
+
this.commentApi.updateDocument(data, this.comment.parentId, this.comment.id).subscribe(function (res) {
|
|
17511
17510
|
if (res) {
|
|
17512
17511
|
_this.dialogRef.close(true);
|
|
17513
17512
|
}
|
|
17514
17513
|
});
|
|
17515
|
-
this.dialogRef.close(true);
|
|
17516
17514
|
}
|
|
17517
17515
|
};
|
|
17518
17516
|
return EditDeleteModalComponent;
|