MOBILE-2611 attachments: Parameter to display required mark

main
Albert Gasset 2018-10-01 17:53:14 +02:00
parent c770fb9014
commit 112eb7b5f9
2 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ export class CoreAttachmentsComponent implements OnInit {
@Input() componentId: string | number; // Component ID.
@Input() allowOffline: boolean | string; // Whether to allow selecting files in offline.
@Input() acceptedTypes: string; // List of supported filetypes. If undefined, all types supported.
@Input() required: boolean; // Whether to display the required mark.
maxSizeReadable: string;
maxSubmissionsReadable: string;

View File

@ -1,5 +1,6 @@
<ion-item text-wrap>
{{ 'core.maxsizeandattachments' | translate:{$a: {size: maxSizeReadable, attachments: maxSubmissionsReadable} } }}
<span [core-mark-required]="required" class="core-mark-required"></span>
</ion-item>
<ion-item text-wrap *ngIf="fileTypes && fileTypes.mimetypes && fileTypes.mimetypes.length">
<p>{{ 'core.fileuploader.filesofthesetypes' | translate }}</p>