feat: replace toasts

This commit is contained in:
Björn Fromme
2025-01-26 18:47:11 +01:00
parent 289668bcbd
commit 8e931c95e3
15 changed files with 54 additions and 111 deletions
-18
View File
@@ -1,18 +0,0 @@
import { Controller } from '@hotwired/stimulus'
import Toastify from 'toastify-js'
export default class extends Controller {
static values = { text: String, class: String }
connect() {
Toastify({
duration: 5000,
text: this.textValue,
gravity: 'top',
position: 'right',
className: this.classValue,
close: true,
}).showToast()
}
}