Skip to content

Commit

Permalink
remove validation as we can still have notifications only without act…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
wh1te909 committed Jul 2, 2024
1 parent 02871fd commit f2bdf0e
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions src/components/modals/alerts/AlertTemplateForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -988,42 +988,6 @@ async function onSubmit() {
return;
}
// webhooks
if (template.action_type === "rest" && !template.action_rest) {
notifyError("A failure web hook must be selected");
return;
}
if (
template.resolved_action_type === "rest" &&
!template.resolved_action_rest
) {
notifyError("A resolved web hook must be selected");
return;
}
// agent script
if (template.action_type === "script" && !template.action) {
notifyError("A failure script must be selected");
return;
}
if (template.resolved_action_type === "script" && !template.resolved_action) {
notifyError("A resolved script must be selected");
return;
}
// server script
if (template.action_type === "server" && !template.action) {
notifyError("A failure script must be selected");
return;
}
if (template.resolved_action_type === "server" && !template.resolved_action) {
notifyError("A resolved script must be selected");
return;
}
loading.value = true;
if (props.alertTemplate) {
Expand Down

0 comments on commit f2bdf0e

Please sign in to comment.