WIP: Implement frontend
This commit is contained in:
1 parent
bfc5e5e242
commit
ce97017ac4
70 files changed
+8751
-337
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import { Controller } from '@hotwired/stimulus'
|
||||
|
||||
export default class extends Controller {
|
||||
static targets = [ 'form', 'title', 'content' ]
|
||||
|
||||
show({ action, title, content }) {
|
||||
this.formTarget.action = action
|
||||
this.titleTarget.innerText = title
|
||||
this.contentTarget.innerHTML = content
|
||||
this.element.classList.remove('hidden')
|
||||
}
|
||||
|
||||
hide() {
|
||||
this.element.classList.add('hidden')
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user