mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4340] FormCloud - Be able to upload a file from the local source (#4647)
* Add a shiny upload button * Fix tslint * Enable the viewer on the content click * Call the process storage in case the form has an upload * Fix the lint * Fix unit tests * Fix tslint on unit tests * Fix the lint * Fix the lint
This commit is contained in:
committed by
Eugenio Romano
parent
b87c18bc13
commit
be49e72208
@@ -374,10 +374,11 @@ export class FormFieldModel extends FormWidgetModel {
|
||||
}
|
||||
break;
|
||||
case FormFieldTypes.UPLOAD:
|
||||
this.form.hasUpload = true;
|
||||
if (this.value && this.value.length > 0) {
|
||||
this.form.values[this.id] = this.value.map((elem) => elem.id).join(',');
|
||||
} else {
|
||||
this.form.values[this.id] = null;
|
||||
this.form.values[this.id] = [];
|
||||
}
|
||||
break;
|
||||
case FormFieldTypes.TYPEAHEAD:
|
||||
|
Reference in New Issue
Block a user