mirror of
https://github.com/czhu12/canine.git
synced 2026-01-06 03:30:16 -06:00
added logs for projects and add ons
This commit is contained in:
11
app/javascript/controllers/logs_controller.js
Normal file
11
app/javascript/controllers/logs_controller.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Controller } from "@hotwired/stimulus"
|
||||
|
||||
export default class extends Controller {
|
||||
static targets = ["container"]
|
||||
|
||||
connect() {
|
||||
// Scroll to the bottom of the container
|
||||
this.containerTarget.scrollTop = this.containerTarget.scrollHeight;
|
||||
console.log("Logs controller connected")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user