-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#609 Add a modal to display responder reports
- Loading branch information
Showing
7 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,7 @@ | |
} | ||
] | ||
}, | ||
sort: ['-startDate'], | ||
pageSize: 100 | ||
}); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,6 +91,7 @@ | |
} | ||
] | ||
}, | ||
sort: ['-startDate'], | ||
pageSize: 100 | ||
}); | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,6 +71,7 @@ | |
} | ||
] | ||
}, | ||
sort: ['-startDate'], | ||
pageSize: 100 | ||
}); | ||
}; | ||
|
16 changes: 16 additions & 0 deletions
16
ui/app/scripts/controllers/cortex/ResponderActionDialogCtrl.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
(function() { | ||
'use strict'; | ||
angular.module('theHiveControllers') | ||
.controller('ResponderActionDialogCtrl', ResponderActionDialogCtrl); | ||
|
||
function ResponderActionDialogCtrl($uibModalInstance, action) { | ||
var self = this; | ||
|
||
this.action = action; | ||
this.report = (JSON.parse(action.report) || {}).full; | ||
|
||
this.close = function() { | ||
$uibModalInstance.dismiss(); | ||
}; | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div class="modal-header bg-primary"> | ||
<h3 class="modal-title">Report of {{$dialog.action.responderName || $dialog.action.responderId}} responder</h3> | ||
</div> | ||
<div class="modal-body observable-report"> | ||
<pre>{{ $dialog.report | json}}</pre> | ||
</div> | ||
<div class="modal-footer text-left"> | ||
<button class="btn btn-primary pull-right" type="button" ng-click="$dialog.close()">Close</button> | ||
</div> |