wip: ajax notifications w/ php-flasher

This commit is contained in:
2025-04-27 08:21:30 -05:00
parent a1a38cb74c
commit 48a601f58d
12 changed files with 204 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
import { Controller } from '@hotwired/stimulus';
import flasher from '@flasher/flasher'
/*
* The following line makes this controller "lazy": it won't be downloaded until needed
* See https://github.com/symfony/stimulus-bridge#lazy-controllers
@@ -31,7 +31,7 @@ export default class extends Controller {
})
.then(res => res.json())
.then(json => {
console.log(json)
})
flasher.success(json.message);
})
}
}