fix test mode modal

This commit is contained in:
Pete Matsyburka
2026-04-16 09:00:43 +03:00
parent d4a79ca5db
commit 5ea6289b7a
2 changed files with 22 additions and 8 deletions
@@ -32,9 +32,13 @@ class WebhookSettingsController < ApplicationController
def new; end
def create
@webhook_url.save!
if @webhook_url.url.present?
@webhook_url.save!
redirect_to settings_webhooks_path, notice: I18n.t('webhook_url_has_been_saved')
redirect_to settings_webhooks_path, notice: I18n.t('webhook_url_has_been_saved')
else
redirect_back fallback_location: settings_webhooks_path
end
end
def update