add confirm prompt for template upload via URL

This commit is contained in:
Alex Turchyn authored and GitHub committed 2026-05-29 09:29:21 +03:00
1 parent 58fd180ae0
commit f65b6e2d76
6 files changed
+121 -17

No files matched your search

@@ -5,7 +5,9 @@ class TemplatesUploadsController < ApplicationController
layout 'plain'
def show; end
def show
redirect_to root_path if params[:url].blank?
end
def create
url_params = create_file_params_from_url if params[:url].present?