HookType is case-sensitive

Update webhook wasn’t showing up because of the wrong case
This commit is contained in:
Christopher Brickley 2014-09-03 22:14:55 -04:00
parent 8d2fe064c5
commit 7269b06fd5

View File

@ -354,11 +354,11 @@ func WebHooksEdit(ctx *middleware.Context) {
case models.SLACK:
{
ctx.Data["SlackHook"] = w.GetSlackHook()
ctx.Data["HookType"] = "slack"
ctx.Data["HookType"] = "Slack"
}
default:
{
ctx.Data["HookType"] = "gogs"
ctx.Data["HookType"] = "Gogs"
}
}
w.GetEvent()