Remove full feeds reload

This commit is contained in:
2025-01-29 22:11:39 +01:00
parent 03510fd68a
commit e5be3b2394
2 changed files with 4 additions and 6 deletions

View File

@@ -44,7 +44,8 @@
<header>
<h2>Create new RSS Feed subscription</h2>
</header>
<form id="create_form" hx-post="/feed/" hx-swap="none" x-ref="create_form" hx-indicator="#indicator">
<form id="create_form" hx-post="/feed/" hx-target="#feed_tbody" hx-swap="beforeend" hx-indicator="#indicator"
@htmx:after-on-load="document.getElementById('create_form').reset();isModalOpen = false">
<label>
Name
<input type="text" name="name">
@@ -71,7 +72,7 @@
<th>Actions</th>
</tr>
</thead>
<tbody hx-get="/feed/" hx-trigger="newFeed from:body" @htmx:after-settle="isModalOpen = false;$refs['create_form'].reset()">
<tbody id="feed_tbody">
{{ feeds|safe }}
</tbody>
</table>