@elite.framework/ng.core 1.0.39 → 1.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1338,13 +1338,14 @@ class AttachmentTypeComponent extends FieldType {
|
|
|
1338
1338
|
messageService;
|
|
1339
1339
|
defaultAcceptTypes = '.pdf,application/pdf,image/*,.txt,text/plain,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel';
|
|
1340
1340
|
maxFileSize = 1 * 1024 * 1024; // 1 MB
|
|
1341
|
-
url = '';
|
|
1342
1341
|
tenantId = 0;
|
|
1343
1342
|
env = inject(ENVIRONMENT);
|
|
1344
1343
|
constructor(messageService) {
|
|
1345
1344
|
super();
|
|
1346
1345
|
this.messageService = messageService;
|
|
1347
|
-
|
|
1346
|
+
}
|
|
1347
|
+
get url() {
|
|
1348
|
+
return this.env.apiUrl + (this.props['apiUrl'] ?? '/api/files');
|
|
1348
1349
|
}
|
|
1349
1350
|
get attachments() {
|
|
1350
1351
|
return Array.isArray(this.formControl.value)
|