Skip to content

Commit

Permalink
#1071 Fix the notification message when exporting cases to MISP
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani authored and To-om committed Apr 6, 2020
1 parent 36047ab commit 57c989f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/app/scripts/controllers/case/CaseExportDialogCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

NotificationSrv.log('The case has been successfully exported, but '+ failure +' observable(s) failed', 'warning');
} else {
success = angular.isObject(response.data) ? 1 : response.data.length;
success = angular.isArray(response.data) ? response.data.length : 1 ;
NotificationSrv.log('The case has been successfully exported with ' + success+ ' observable(s)', 'success');
$uibModalInstance.close();
}
Expand All @@ -85,6 +85,6 @@
}
self.loading = false;
});
}
};
});
})();

0 comments on commit 57c989f

Please sign in to comment.