refactor
This commit is contained in:
@@ -52,7 +52,7 @@ class WebhookEventsController < ApplicationController
|
|||||||
turbo_stream.replace(helpers.dom_id(@webhook_event),
|
turbo_stream.replace(helpers.dom_id(@webhook_event),
|
||||||
partial: 'event_row',
|
partial: 'event_row',
|
||||||
locals: { with_status: true, webhook_url: @webhook_url, webhook_event: @webhook_event }),
|
locals: { with_status: true, webhook_url: @webhook_url, webhook_event: @webhook_event }),
|
||||||
turbo_stream.replace("drawer_events_#{helpers.dom_id(@webhook_event)}",
|
turbo_stream.replace(helpers.dom_id(@webhook_event, :drawer_events),
|
||||||
partial: 'drawer_events',
|
partial: 'drawer_events',
|
||||||
locals: { webhook_url: @webhook_url, webhook_event: @webhook_event })
|
locals: { webhook_url: @webhook_url, webhook_event: @webhook_event })
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div id="drawer_events_<%= dom_id(webhook_event) %>">
|
<div id="<%= dom_id(webhook_event, :drawer_events) %>">
|
||||||
<ol class="relative border-s border-base-300 space-y-6 ml-3">
|
<ol class="relative border-s border-base-300 space-y-6 ml-3">
|
||||||
<% webhook_attempts = webhook_event.webhook_attempts.sort_by { |e| -e.id } %>
|
<% webhook_attempts = webhook_event.webhook_attempts.sort_by { |e| -e.id } %>
|
||||||
<% if webhook_event.status == 'error' %>
|
<% if webhook_event.status == 'error' %>
|
||||||
|
|||||||
Reference in New Issue
Block a user