@alfresco/adf-process-services 9.2.0-44746141092 → 9.2.0-45138623378
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.push(...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,16 +10232,13 @@ class TaskAttachmentListComponent {
|
|
|
10232
10232
|
}
|
|
10233
10233
|
add(content) {
|
|
10234
10234
|
this.ngZone.run(() => {
|
|
10235
|
-
this.attachments
|
|
10236
|
-
|
|
10237
|
-
|
|
10238
|
-
|
|
10239
|
-
|
|
10240
|
-
|
|
10241
|
-
|
|
10242
|
-
icon: this.thumbnailService.getMimeTypeIcon(content.mimeType)
|
|
10243
|
-
}
|
|
10244
|
-
];
|
|
10235
|
+
this.attachments.push({
|
|
10236
|
+
id: content.id,
|
|
10237
|
+
name: content.name,
|
|
10238
|
+
created: content.created,
|
|
10239
|
+
createdBy: content.createdBy.firstName + ' ' + content.createdBy.lastName,
|
|
10240
|
+
icon: this.thumbnailService.getMimeTypeIcon(content.mimeType)
|
|
10241
|
+
});
|
|
10245
10242
|
});
|
|
10246
10243
|
}
|
|
10247
10244
|
deleteAttachmentById(contentId) {
|
|
@@ -10424,16 +10421,13 @@ class ProcessAttachmentListComponent {
|
|
|
10424
10421
|
}
|
|
10425
10422
|
add(content) {
|
|
10426
10423
|
this.ngZone.run(() => {
|
|
10427
|
-
this.attachments
|
|
10428
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
icon: this.thumbnailService.getMimeTypeIcon(content.mimeType)
|
|
10435
|
-
}
|
|
10436
|
-
];
|
|
10424
|
+
this.attachments.push({
|
|
10425
|
+
id: content.id,
|
|
10426
|
+
name: content.name,
|
|
10427
|
+
created: content.created,
|
|
10428
|
+
createdBy: content.createdBy.firstName + ' ' + content.createdBy.lastName,
|
|
10429
|
+
icon: this.thumbnailService.getMimeTypeIcon(content.mimeType)
|
|
10430
|
+
});
|
|
10437
10431
|
});
|
|
10438
10432
|
}
|
|
10439
10433
|
onShowRowActionsMenu(event) {
|
|
@@ -10490,13 +10484,15 @@ class ProcessAttachmentListComponent {
|
|
|
10490
10484
|
this.isLoading = true;
|
|
10491
10485
|
const isRelatedContent = 'true';
|
|
10492
10486
|
this.processContentService.getProcessRelatedContent(processInstanceId, { isRelatedContent }).subscribe((res) => {
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
|
|
10496
|
-
|
|
10497
|
-
|
|
10498
|
-
|
|
10499
|
-
|
|
10487
|
+
res.data.forEach((content) => {
|
|
10488
|
+
this.attachments.push({
|
|
10489
|
+
id: content.id,
|
|
10490
|
+
name: content.name,
|
|
10491
|
+
created: content.created,
|
|
10492
|
+
createdBy: content.createdBy.firstName + ' ' + content.createdBy.lastName,
|
|
10493
|
+
icon: this.thumbnailService.getMimeTypeIcon(content.mimeType)
|
|
10494
|
+
});
|
|
10495
|
+
});
|
|
10500
10496
|
this.success.emit(this.attachments);
|
|
10501
10497
|
this.isLoading = false;
|
|
10502
10498
|
}, (err) => {
|