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,18 +3,11 @@ import { Controller } from '@hotwired/stimulus'
|
||||
export default class extends Controller {
|
||||
static outlets = [ 'confirmation-modal', 'ajax-modal' ]
|
||||
|
||||
confirmation({ params: { title, action, content } }) {
|
||||
this.confirmationModalOutlet.show({
|
||||
title: title,
|
||||
action: action,
|
||||
content: content,
|
||||
})
|
||||
confirmation({ params: { title, targetUrl, content } }) {
|
||||
this.confirmationModalOutlet.show({ title, targetUrl, content })
|
||||
}
|
||||
|
||||
ajax({ params: { title, url } }) {
|
||||
this.ajaxModalOutlet.show({
|
||||
title: title,
|
||||
url: url,
|
||||
})
|
||||
this.ajaxModalOutlet.show({ title, url })
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user