diff --git a/app/portainer/views/stacks/create/createStackController.js b/app/portainer/views/stacks/create/createStackController.js
index 5a8445900..29042eeb3 100644
--- a/app/portainer/views/stacks/create/createStackController.js
+++ b/app/portainer/views/stacks/create/createStackController.js
@@ -84,6 +84,12 @@ angular
$scope.onChangeFormValues = onChangeFormValues;
+ $scope.onEnableWebhookChange = function (enable) {
+ $scope.$evalAsync(() => {
+ $scope.formValues.EnableWebhook = enable;
+ });
+ };
+
$scope.addAdditionalFiles = function () {
$scope.formValues.AdditionalFiles.push('');
};
diff --git a/app/portainer/views/stacks/create/createstack.html b/app/portainer/views/stacks/create/createstack.html
index 1064c5c01..49901afd2 100644
--- a/app/portainer/views/stacks/create/createstack.html
+++ b/app/portainer/views/stacks/create/createstack.html
@@ -107,7 +107,10 @@