package app import ( "strings" "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) templ NotificationWebhooks(data dash.NotificationWebhooksData) {

Webhooks

Send filer events to HTTP endpoints, filtered by path and event type

Targets are stored in the filer at { data.ConfigPath } and apply to all filers without a restart.
if len(data.Webhooks) == 0 {

No webhook targets yet.

} else {
for _, hook := range data.Webhooks { }
Name Status Endpoint Events Path Prefixes Token Actions
{ hook.Name } if hook.Enabled { Enabled } else { Disabled } { hook.Endpoint } { webhookFilterLabel(hook.EventTypes) } { webhookFilterLabel(hook.PathPrefixes) } if hook.HasBearerToken { } else { - }
}
} templ webhookNumberInput(id string, label string, placeholder string) {
} func webhookFilterLabel(values []string) string { if len(values) == 0 { return "all" } return strings.Join(values, ", ") }