Skip to content

Commit

Permalink
#893 Skip case template section when creating a case from alerts, if …
Browse files Browse the repository at this point in the history
…there are no case templates
  • Loading branch information
nadouani committed Feb 22, 2019
1 parent 50611e0 commit b8fd37a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/app/scripts/controllers/alert/AlertListCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@
CaseTemplateSrv.list()
.then(function(templates) {

if(!templates || templates.length === 0) {
return $q.resolve(undefined);
}

// Open template selection dialog
var modal = $uibModal.open({
templateUrl: 'views/partials/case/case.templates.selector.html',
Expand Down

0 comments on commit b8fd37a

Please sign in to comment.