WIP: Implement Admin CRUD
This commit is contained in:
1 parent
2dd8a6de19
commit
c3c2e1ae2d
26 files changed
+568
-20
No files matched your search
@@ -3,8 +3,8 @@ import { Controller } from '@hotwired/stimulus'
|
||||
export default class extends Controller {
|
||||
static targets = [ 'form', 'title', 'content' ]
|
||||
|
||||
show({ action, title, content }) {
|
||||
this.formTarget.action = action
|
||||
show({ targetUrl, title, content }) {
|
||||
this.formTarget.action = targetUrl
|
||||
this.titleTarget.innerText = title
|
||||
this.contentTarget.innerHTML = content
|
||||
this.element.classList.remove('hidden')
|
||||
|
||||
Reference in new issue
Block a user