Commit 79d0f4da authored by Nabil Adouani's avatar Nabil Adouani

#893 Skip case template section when creating a case from alerts, if there are no case templates

parent 4341ac80
......@@ -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',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment