Skip to content

Commit 7f29669

Browse files
committed
#108 Fix the link that opens the flow in a new window from the case list
1 parent b9c5f7d commit 7f29669

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

ui/app/scripts/controllers/case/CaseListCtrl.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
angular.module('theHiveControllers')
44
.controller('CaseListCtrl', CaseListCtrl);
55

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

99
this.showFlow = true;
@@ -186,5 +186,10 @@
186186
this.uiSrv.setSort(sort);
187187
};
188188

189+
this.live = function() {
190+
$window.open($state.href('live'), 'TheHiveLive',
191+
'width=500,height=700,menubar=no,status=no,toolbar=no,location=no,scrollbars=yes');
192+
};
193+
189194
}
190195
})();

ui/app/views/partials/case/case.list.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ <h4>List of cases ({{$vm.list.total || 0}} of {{$vm.caseStats.count}})</h4>
116116
<div class="row mb-s">
117117
<div class="col-md-7">
118118
<span ng-mouseleave="liveOn='text-muted'" ng-mouseenter="liveOn='text-primary'">
119-
<a href ng-click="live(); $vm.showFlow = false" class="text-muted">
119+
<a href ng-click="$vm.live(); $vm.showFlow = false" class="text-muted">
120120
<i ng-class="liveOn" class="text-muted glyphicon glyphicon-new-window"></i>
121121
Open in new window</a>
122122
</span>

ui/bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "thehive",
3-
"version": "2.10.0-SNAPSHOT",
3+
"version": "2.10.1-SNAPSHOT",
44
"license": "AGPL-3.0",
55
"dependencies": {
66
"angular": "1.5.8",

ui/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "thehive",
3-
"version": "2.10.0-SNAPSHOT",
3+
"version": "2.10.1-SNAPSHOT",
44
"license": "AGPL-3.0",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)