Mark notification read when viewing the Bubble

This commit is contained in:
Kevin McConnell
2025-01-13 12:31:31 +00:00
parent 271ac063f9
commit 46989f6ebe
14 changed files with 35 additions and 44 deletions
@@ -0,0 +1,10 @@
import { post } from "@rails/request.js"
import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
static values = { url: String }
connect() {
post(this.urlValue, { responseKind: "turbo-stream" })
}
}