[ADF-740] Add button for process attachment list (#1955)

* [ADF-740] adding button to allow user to upload related content on process instance

* [ADF-740] add button for attachment content list for process

* changed locatin for translation

* [ADF-740] added test for add button for process attach

* [ADF-740] added PR request changes
This commit is contained in:
Vito 2017-06-13 04:20:06 -07:00 committed by Eugenio Romano
parent 5f5da2f631
commit fc33bf6333
3 changed files with 13 additions and 9 deletions

View File

@ -1,4 +1,4 @@
.upload-attachment-container {
.adf-upload-attachment-container {
border: 1px solid rgb(224, 224, 224);
background: #fff;
text-align: left;
@ -7,13 +7,13 @@
text-align: center;
}
.drag-area {
.adf-drag-area {
border: 1px solid #eee;
padding: 100px 10px;
margin-bottom: 10px;
}
.upload-attachment-container button {
.adf-upload-attachment-container button {
color: rgb(253, 145, 0);
opacity: 0.64;
}

View File

@ -1,5 +1,5 @@
<div class="upload-attachment-container">
<div class="drag-area"
<div class="adf-upload-attachment-container">
<div class="adf-drag-area"
(upload-files)="onFileUpload($event)"
mode="['click', 'drop']"
[adf-upload]="true">

View File

@ -59,6 +59,10 @@ export class ActivitiProcessAttachmentListComponent implements OnChanges {
this.attachments = [];
}
reload(): void {
this.loadAttachmentsByProcessInstanceId(this.processInstanceId);
}
private loadAttachmentsByProcessInstanceId(processInstanceId: string) {
if (processInstanceId) {
this.reset();