@alfresco/adf-process-services 9.2.0-44535709462 → 9.2.0-44746141092
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.
|
@@ -2034,7 +2034,7 @@ class FormListComponent {
|
|
|
2034
2034
|
}
|
|
2035
2035
|
getForms() {
|
|
2036
2036
|
this.modelService.getForms().subscribe((forms) => {
|
|
2037
|
-
this.forms.
|
|
2037
|
+
this.forms = [...this.forms, ...forms];
|
|
2038
2038
|
});
|
|
2039
2039
|
}
|
|
2040
2040
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
@@ -10232,13 +10232,16 @@ class TaskAttachmentListComponent {
|
|
|
10232
10232
|
}
|
|
10233
10233
|
add(content) {
|
|
10234
10234
|
this.ngZone.run(() => {
|
|
10235
|
-
this.attachments
|
|
10236
|
-
|
|
10237
|
-
|
|
10238
|
-
|
|
10239
|
-
|
|
10240
|
-
|
|
10241
|
-
|
|
10235
|
+
this.attachments = [
|
|
10236
|
+
...this.attachments,
|
|
10237
|
+
{
|
|
10238
|
+
id: content.id,
|
|
10239
|
+
name: content.name,
|
|
10240
|
+
created: content.created,
|
|
10241
|
+
createdBy: content.createdBy.firstName + ' ' + content.createdBy.lastName,
|
|
10242
|
+
icon: this.thumbnailService.getMimeTypeIcon(content.mimeType)
|
|
10243
|
+
}
|
|
10244
|
+
];
|
|
10242
10245
|
});
|
|
10243
10246
|
}
|
|
10244
10247
|
deleteAttachmentById(contentId) {
|
|
@@ -10421,13 +10424,16 @@ class ProcessAttachmentListComponent {
|
|
|
10421
10424
|
}
|
|
10422
10425
|
add(content) {
|
|
10423
10426
|
this.ngZone.run(() => {
|
|
10424
|
-
this.attachments
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
10427
|
+
this.attachments = [
|
|
10428
|
+
...this.attachments,
|
|
10429
|
+
{
|
|
10430
|
+
id: content.id,
|
|
10431
|
+
name: content.name,
|
|
10432
|
+
created: content.created,
|
|
10433
|
+
createdBy: content.createdBy.firstName + ' ' + content.createdBy.lastName,
|
|
10434
|
+
icon: this.thumbnailService.getMimeTypeIcon(content.mimeType)
|
|
10435
|
+
}
|
|
10436
|
+
];
|
|
10431
10437
|
});
|
|
10432
10438
|
}
|
|
10433
10439
|
onShowRowActionsMenu(event) {
|
|
@@ -10484,15 +10490,13 @@ class ProcessAttachmentListComponent {
|
|
|
10484
10490
|
this.isLoading = true;
|
|
10485
10491
|
const isRelatedContent = 'true';
|
|
10486
10492
|
this.processContentService.getProcessRelatedContent(processInstanceId, { isRelatedContent }).subscribe((res) => {
|
|
10487
|
-
res.data.
|
|
10488
|
-
|
|
10489
|
-
|
|
10490
|
-
|
|
10491
|
-
|
|
10492
|
-
|
|
10493
|
-
|
|
10494
|
-
});
|
|
10495
|
-
});
|
|
10493
|
+
this.attachments = res.data.map((content) => ({
|
|
10494
|
+
id: content.id,
|
|
10495
|
+
name: content.name,
|
|
10496
|
+
created: content.created,
|
|
10497
|
+
createdBy: content.createdBy.firstName + ' ' + content.createdBy.lastName,
|
|
10498
|
+
icon: this.thumbnailService.getMimeTypeIcon(content.mimeType)
|
|
10499
|
+
}));
|
|
10496
10500
|
this.success.emit(this.attachments);
|
|
10497
10501
|
this.isLoading = false;
|
|
10498
10502
|
}, (err) => {
|