diff options
author | David Gay <david@davidgay.org> | 2021-05-19 18:39:35 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-19 18:39:35 -0400 |
commit | 9fec79398a34d26be1042e35cae429b88f8b96d0 (patch) | |
tree | c51814b60f5fb3ae753f9fe7549b30af6930adcc /app/javascript/controllers | |
parent | 9ab7dfd99e7015513bfe1a092f257c1c7a7afb1b (diff) |
Revise and progress with hearth amenity construction
Diffstat (limited to 'app/javascript/controllers')
-rw-r--r-- | app/javascript/controllers/timer_controller.js (renamed from app/javascript/controllers/activities/timer_controller.js) | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/controllers/activities/timer_controller.js b/app/javascript/controllers/timer_controller.js index 11057c0..7714bad 100644 --- a/app/javascript/controllers/activities/timer_controller.js +++ b/app/javascript/controllers/timer_controller.js @@ -6,6 +6,7 @@ export default class extends Controller { static values = { start: Number, + postUrl: String, } initialize() { @@ -29,7 +30,7 @@ export default class extends Controller { } else if (this.counter === 0) { Rails.ajax({ type: "POST", - url: "/finish_activity", + url: this.postUrlValue, }); } }, 1000); |