From 86f5770898d9d7c109948587d8fb09e34a5ea8df Mon Sep 17 00:00:00 2001 From: qinmingyuan Date: Wed, 4 Dec 2024 22:45:06 +0800 Subject: [PATCH] batch --- app/views/trade/admin/payments/confirm.turbo_stream.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/trade/admin/payments/confirm.turbo_stream.erb b/app/views/trade/admin/payments/confirm.turbo_stream.erb index 7c9d05f26..0d68bda90 100644 --- a/app/views/trade/admin/payments/confirm.turbo_stream.erb +++ b/app/views/trade/admin/payments/confirm.turbo_stream.erb @@ -1 +1,5 @@ -<%= turbo_stream.append 'body', partial: 'visit', locals: { url: url_for(controller: 'desk/items', action: 'history', desk_id: params[:desk_id]) } %> \ No newline at end of file +<% if referer_controller == 'trade/admin/desk/items' %> + <%= turbo_stream.append 'body', partial: 'visit', locals: { url: url_for(controller: referer_controller, action: 'history', desk_id: params[:desk_id]) } %> +<% else %> + <%= turbo_stream.append 'body', partial: 'visit', locals: { url: url_for(controller: referer_controller) } %> +<% end %> \ No newline at end of file