diff --git a/src/components/attachments/attachments.ts b/src/components/attachments/attachments.ts index 80dc5bb5e..a44eb6bb3 100644 --- a/src/components/attachments/attachments.ts +++ b/src/components/attachments/attachments.ts @@ -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; diff --git a/src/components/attachments/core-attachments.html b/src/components/attachments/core-attachments.html index 9131826d2..7a1abcda8 100644 --- a/src/components/attachments/core-attachments.html +++ b/src/components/attachments/core-attachments.html @@ -1,5 +1,6 @@ {{ 'core.maxsizeandattachments' | translate:{$a: {size: maxSizeReadable, attachments: maxSubmissionsReadable} } }} +

{{ 'core.fileuploader.filesofthesetypes' | translate }}