Skip to content

Commit

Permalink
#61 Redirect to current cases after a case is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Dec 13, 2016
1 parent c41bed2 commit c593bec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions ui/app/scripts/controllers/case/CaseCloseModalCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
$scope.initialize = function() {
MetricsCacheSrv.all().then(function(metricsCache) {

console.log($scope.caze);

$scope.formData = {
status: 'Resolved',
resolutionStatus: $scope.caze.resolutionStatus || 'Indeterminate',
Expand Down
6 changes: 5 additions & 1 deletion ui/app/scripts/controllers/case/CaseMainCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,16 @@
};

$scope.openCloseDialog = function() {
$modal.open({
var modalInstance = $modal.open({
scope: $scope,
templateUrl: 'views/partials/case/case.close.html',
controller: 'CaseCloseModalCtrl',
size: 'lg'
});

modalInstance.result.then(function() {
$state.go('app.main', {viewId: 'currentcases'});
});
};

$scope.reopenCase = function() {
Expand Down

0 comments on commit c593bec

Please sign in to comment.