diff --git a/templates/base.html b/templates/base.html index c96dadf..13bc9b8 100644 --- a/templates/base.html +++ b/templates/base.html @@ -150,17 +150,12 @@
-
-
- + + diff --git a/templates/partials/workout_modal.html b/templates/partials/workout_modal.html index 2eeb934..6c32c48 100644 --- a/templates/partials/workout_modal.html +++ b/templates/partials/workout_modal.html @@ -87,9 +87,8 @@ hx-post="{{ url_for('create_topset', person_id=workout['PersonId'], workout_id=workout['WorkoutId']) }}" hx-swap="beforeend" hx-target="#new-workout" _="on htmx:afterOnLoad if #no-workouts add .hidden to #no-workouts end on htmx:afterRequest - js - displayNotification('Topset added') - end + render #notification-template with (message: 'Topset added') then append it to #notifications-container + then call _hyperscript.processNode(#notifications-container) then reset() me">
diff --git a/templates/settings.html b/templates/settings.html index 75584b8..538c3ae 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -61,10 +61,9 @@
+ render #notification-template with (message: 'User added') then append it to #notifications-container + then call _hyperscript.processNode(#notifications-container) + then reset() me">