fix: flash message icons not displaying properly

- Add specific case for 'info' flash message type in flash_icon helper
- Initialize Lucide icons when flash message controller connects
- Ensures icons render correctly with Turbo navigation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
kbe
2025-08-28 16:25:22 +02:00
parent b2d1cb5fa4
commit 784d5158b4
2 changed files with 26 additions and 24 deletions

View File

@@ -6,10 +6,15 @@ export default class extends Controller {
connect() {
console.log("FlashMessageController mounted", this.element);
// Auto-dismiss after 5 seconds
// Initialize Lucide icons for this element
if (typeof lucide !== 'undefined') {
lucide.createIcons({ within: this.element });
}
// Auto-dismiss after 2 seconds
this.timeout = setTimeout(() => {
this.close()
}, 5000)
}, 2000)
}
disconnect() {