Skip to content

Commit

Permalink
#108 Fix the link that opens the flow in a new window from the case list
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Feb 6, 2017
1 parent b9c5f7d commit 7f29669
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion ui/app/scripts/controllers/case/CaseListCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
angular.module('theHiveControllers')
.controller('CaseListCtrl', CaseListCtrl);

function CaseListCtrl($scope, $q, CasesUISrv, StreamStatSrv, PSearchSrv, EntitySrv, UserInfoSrv, TagSrv, UserSrv, AuthenticationSrv, CaseResolutionStatus) {
function CaseListCtrl($scope, $q, $state, $window, CasesUISrv, StreamStatSrv, PSearchSrv, EntitySrv, UserInfoSrv, TagSrv, UserSrv, AuthenticationSrv, CaseResolutionStatus) {
var self = this;

this.showFlow = true;
Expand Down Expand Up @@ -186,5 +186,10 @@
this.uiSrv.setSort(sort);
};

this.live = function() {
$window.open($state.href('live'), 'TheHiveLive',
'width=500,height=700,menubar=no,status=no,toolbar=no,location=no,scrollbars=yes');
};

}
})();
2 changes: 1 addition & 1 deletion ui/app/views/partials/case/case.list.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h4>List of cases ({{$vm.list.total || 0}} of {{$vm.caseStats.count}})</h4>
<div class="row mb-s">
<div class="col-md-7">
<span ng-mouseleave="liveOn='text-muted'" ng-mouseenter="liveOn='text-primary'">
<a href ng-click="live(); $vm.showFlow = false" class="text-muted">
<a href ng-click="$vm.live(); $vm.showFlow = false" class="text-muted">
<i ng-class="liveOn" class="text-muted glyphicon glyphicon-new-window"></i>
Open in new window</a>
</span>
Expand Down
2 changes: 1 addition & 1 deletion ui/bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "thehive",
"version": "2.10.0-SNAPSHOT",
"version": "2.10.1-SNAPSHOT",
"license": "AGPL-3.0",
"dependencies": {
"angular": "1.5.8",
Expand Down
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "thehive",
"version": "2.10.0-SNAPSHOT",
"version": "2.10.1-SNAPSHOT",
"license": "AGPL-3.0",
"repository": {
"type": "git",
Expand Down

0 comments on commit 7f29669

Please sign in to comment.