nuxeo-development-framework 0.1.6 → 0.2.0
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 +27 -4
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/notifications/components/notification-item/notification-item.component.js +17 -2
- package/esm2015/lib/components/notifications/components/notifications-button/notifications-button.component.js +11 -3
- package/fesm2015/nuxeo-development-framework.js +26 -3
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/package.json +1 -1
|
@@ -15326,12 +15326,27 @@
|
|
|
15326
15326
|
this.update.emit({ action: data, notification: this.notification });
|
|
15327
15327
|
};
|
|
15328
15328
|
NotificationItemComponent.prototype.navigateToDetais = function (corrId) {
|
|
15329
|
+
var sourceType = this.notification.sourceType;
|
|
15330
|
+
var isAssignmentOrApproval = sourceType === "approval" || sourceType === "assignment";
|
|
15331
|
+
var correspondence = sourceType === "correspondence";
|
|
15332
|
+
var assignment = sourceType === "assignment";
|
|
15333
|
+
var approval = sourceType === "approval";
|
|
15334
|
+
var memo = sourceType === "memo";
|
|
15335
|
+
var general = sourceType === "general";
|
|
15336
|
+
var id = memo ? this.notification.sourceId : corrId;
|
|
15329
15337
|
if (corrId) {
|
|
15330
15338
|
this.router.navigate([
|
|
15331
15339
|
{
|
|
15332
|
-
outlets: { viewer: ["view",
|
|
15340
|
+
outlets: { viewer: ["view", id] },
|
|
15333
15341
|
},
|
|
15334
15342
|
], {
|
|
15343
|
+
queryParams: Object.assign(Object.assign({ location: this.router.url }, (isAssignmentOrApproval && { approvalMode: true })), (assignment && {
|
|
15344
|
+
assignmentId: this.notification.data.assignmentId,
|
|
15345
|
+
})),
|
|
15346
|
+
});
|
|
15347
|
+
}
|
|
15348
|
+
if (memo) {
|
|
15349
|
+
this.router.navigate([{ outlets: { viewer: ["memo", id] } }], {
|
|
15335
15350
|
queryParams: { location: this.router.url },
|
|
15336
15351
|
});
|
|
15337
15352
|
}
|
|
@@ -15948,7 +15963,7 @@
|
|
|
15948
15963
|
NotificationsButtonComponent.prototype.ngOnInit = function () {
|
|
15949
15964
|
var _this = this;
|
|
15950
15965
|
this.subscription = this.notificationsService.listenerObserver.subscribe(function (activity) { return __awaiter(_this, void 0, void 0, function () {
|
|
15951
|
-
var ar, sourceType, isAssignmentOrApproval;
|
|
15966
|
+
var ar, sourceType, isAssignmentOrApproval, correspondence, assignment, approval, memo, general, id;
|
|
15952
15967
|
var _this = this;
|
|
15953
15968
|
return __generator(this, function (_b) {
|
|
15954
15969
|
switch (_b.label) {
|
|
@@ -15959,6 +15974,12 @@
|
|
|
15959
15974
|
ar = _b.sent();
|
|
15960
15975
|
sourceType = activity.sourceType;
|
|
15961
15976
|
isAssignmentOrApproval = sourceType === "approval" || sourceType === "assignment";
|
|
15977
|
+
correspondence = sourceType === "correspondence";
|
|
15978
|
+
assignment = sourceType === "assignment";
|
|
15979
|
+
approval = sourceType === "approval";
|
|
15980
|
+
memo = sourceType === "memo";
|
|
15981
|
+
general = sourceType === "general";
|
|
15982
|
+
id = memo ? activity.sourceId : activity.data.correspondenceId;
|
|
15962
15983
|
this.showToastr(activity, ar)
|
|
15963
15984
|
.onTap.pipe(take.take(1))
|
|
15964
15985
|
.subscribe(function () {
|
|
@@ -15968,11 +15989,13 @@
|
|
|
15968
15989
|
_this.router.navigate([
|
|
15969
15990
|
{
|
|
15970
15991
|
outlets: {
|
|
15971
|
-
viewer: ["view",
|
|
15992
|
+
viewer: ["view", id],
|
|
15972
15993
|
},
|
|
15973
15994
|
},
|
|
15974
15995
|
], {
|
|
15975
|
-
queryParams: Object.assign({ location: _this.router.url }, (isAssignmentOrApproval && { approvalMode: true })),
|
|
15996
|
+
queryParams: Object.assign(Object.assign({ location: _this.router.url }, (isAssignmentOrApproval && { approvalMode: true })), (assignment && {
|
|
15997
|
+
assignmentId: activity.data.assignmentId,
|
|
15998
|
+
})),
|
|
15976
15999
|
});
|
|
15977
16000
|
}
|
|
15978
16001
|
});
|