Skip to content

Commit b9b0e56

Browse files
committed
#237 show file information in alert preview using new format
1 parent a8d3cc5 commit b9b0e56

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

ui/app/views/partials/alert/event.dialog.html

+7-4
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,11 @@ <h4 class="vpad10 text-primary">
7676
<td class="wrap" ng-if="attribute.dataType !== 'file'">
7777
{{attribute.data | fang | ellipsis:250}}
7878
</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}}
8184
</td>
8285
</tr>
8386
</tbody>
@@ -133,15 +136,15 @@ <h4 class="vpad10 text-primary">
133136
<label class="col-sm-4 control-label">Import alert as</label>
134137
<div class="col-sm-8 input-group">
135138
<!-- <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">
137140
<option value="">Empty case</option>
138141
</select>
139142
<!-- <select class="form-control">
140143
141144
<option value="MISP">MISP</option>
142145
</select> -->
143146
<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>
145148
</span>
146149
</div>
147150

0 commit comments

Comments
 (0)