@@ -76,8 +76,11 @@ <h4 class="vpad10 text-primary">
76
76
< td class ="wrap " ng-if ="attribute.dataType !== 'file' ">
77
77
{{attribute.data | fang | ellipsis:250}}
78
78
</ td >
79
- < td class ="wrap " ng-if ="attribute.dataType === 'file' ">
80
- {{(attribute.data.filename || attribute.data.split(';')[0]) | fang | ellipsis:250}}
79
+ < td class ="wrap " ng-if ="attribute.dataType === 'file' && attribute.attachment ">
80
+ {{attribute.attachment.name}} ({{attribute.attachment.size}} bytes)
81
+ </ td >
82
+ < td class ="wrap " ng-if ="attribute.dataType === 'file' && attribute.remoteAttachment ">
83
+ {{attribute.remoteAttachment.filename}}
81
84
</ td >
82
85
</ tr >
83
86
</ tbody >
@@ -133,15 +136,15 @@ <h4 class="vpad10 text-primary">
133
136
< label class ="col-sm-4 control-label "> Import alert as</ label >
134
137
< div class ="col-sm-8 input-group ">
135
138
<!-- <input type="text" class="form-control" placeholder="Search for..."> -->
136
- < select class ="form-control " ng-model ="dialog.event.caseTemplate " ng-options ="template for template in dialog.templates " required >
139
+ < select class ="form-control " ng-model ="dialog.event.caseTemplate " ng-options ="template for template in dialog.templates ">
137
140
< option value =""> Empty case</ option >
138
141
</ select >
139
142
<!-- <select class="form-control">
140
143
141
144
<option value="MISP">MISP</option>
142
145
</select> -->
143
146
< span class ="input-group-btn ">
144
- < button class ="btn btn-primary " type ="submit " ng-disabled ="eventForm.$invalid || dialog.loading "> Yes, Import</ button >
147
+ < button class ="btn btn-primary " type ="submit " ng-disabled ="dialog.loading "> Yes, Import</ button >
145
148
</ span >
146
149
</ div >
147
150
0 commit comments