This commit is contained in:
9
app/javascript/controllers/dialog_controller.js
Normal file
9
app/javascript/controllers/dialog_controller.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Controller } from "@hotwired/stimulus"
|
||||
|
||||
export default class extends Controller {
|
||||
static targets = [ "menu" ]
|
||||
|
||||
open() {
|
||||
this.menuTarget.showModal()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user