WIP: Implement frontend

This commit is contained in:
Björn Fromme committed 2023-09-18 13:10:20 +02:00
1 parent bfc5e5e242
commit ce97017ac4
70 files changed
+8751 -337

No files matched your search

@@ -0,0 +1,20 @@
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,
})
}
ajax({ params: { title, url } }) {
this.ajaxModalOutlet.show({
title: title,
url: url,
})
}
}