MOBILE-2611 attachments: Parameter to display required mark
parent
c770fb9014
commit
112eb7b5f9
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue