Skip to content

Commit 54833bc

Browse files
committed
fix: update max file limit in file upload component
Signed-off-by: Manuel Abascal <mjabascal10@gmail.com>
1 parent 18bff6d commit 54833bc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

frontend/src/app/rule-management/app-rule/components/import-rules/import-rule.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ export class ImportRuleComponent implements OnInit, OnDestroy {
124124
dataTypes: file.dataTypes && file.dataTypes.length > 0 ? file.dataTypes : []
125125
};
126126
});
127-
console.log('filesWithDataTypes', filesWithDataTypes);
128127

129128
// Fetch and filter data types for each file
130129
forkJoin(
@@ -147,7 +146,7 @@ export class ImportRuleComponent implements OnInit, OnDestroy {
147146
integrity: file.impact.integrity || 0,
148147
availability: file.impact.availability || 0,
149148
definition: file.where || '',
150-
afterEvents: file.afterEvents || [],
149+
afterEvents: file.afterEvents || file.correlation || [],
151150
dataTypes: filteredDataTypes.filter(dt => !!dt)
152151
}))
153152
),

frontend/src/app/rule-management/app-rule/components/import-rules/import-rule.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ export class ImportRuleService {
157157
'impact',
158158
'where',
159159
'afterEvents',
160+
'correlation',
160161
'name',
161162
'adversary',
162163
'confidentiality',

frontend/src/app/shared/components/utm/util/utm-file-upload/utm-file-upload.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class UtmFileUploadComponent implements OnInit {
1515
@Input() shoPreview = false;
1616
@Input() validateFileSize = false;
1717
@Input() maxFileSize = 10 * 1024;
18-
maxFiles = 10;
18+
maxFiles = 50;
1919
maxFilesError = false;
2020
@Output() fileEmit = new EventEmitter<any[]>();
2121
@Output() errorEmit = new EventEmitter<any>();

0 commit comments

Comments
 (0)