add notification webhook fields

This commit is contained in:
Jake McDermott
2019-06-24 11:59:26 -04:00
committed by beeankha
parent 52b01feafe
commit cc0310ccd4
4 changed files with 38 additions and 2 deletions

View File

@@ -138,6 +138,16 @@ export default ['Rest', 'Wait',
element: '#notification_template_color',
multiple: false
});
$scope.httpMethodChoices = [
{'id': 'post', 'name': i18n._('POST')},
{'id': 'put', 'name': i18n._('PUT')},
];
CreateSelect2({
element: '#notification_template_http_method',
multiple: false,
});
NotificationsTypeChange.getDetailFields($scope.notification_type.value).forEach(function(field) {
$scope[field[0]] = field[1];
});