summaryrefslogtreecommitdiff
path: root/app/views/activities
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/activities')
-rw-r--r--app/views/activities/_timer.html.erb9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/views/activities/_timer.html.erb b/app/views/activities/_timer.html.erb
index 418c378..27d9272 100644
--- a/app/views/activities/_timer.html.erb
+++ b/app/views/activities/_timer.html.erb
@@ -1,8 +1,9 @@
<% if current_char.activity %>
- <div data-controller="activities--timer"
- data-activities--timer-start-value="<%= current_char.activity_time_remaining.ceil %>"
+ <div data-controller="timer"
+ data-timer-start-value="<%= current_char.activity_time_remaining.ceil %>"
+ data-timer-post-url-value="<%= finish_activity_url %>"
class="text-center">
- <span data-activities--timer-target="timer" class="text-3xl"></span>
+ <span data-timer-target="timer" class="text-3xl"></span>
</div>
- <%= link_to "Stop", location_path(current_char.activity.location) %>
+ <%= link_to "Stop", character_path(current_char) %>
<% end %>